fix: HMR
This commit is contained in:
parent
b2f84fde52
commit
671e23b989
|
@ -29,7 +29,9 @@ module.exports = {
|
|||
}],
|
||||
}),
|
||||
mocha(),
|
||||
node(),
|
||||
node({
|
||||
hot: false,
|
||||
}),
|
||||
(neutrino) => {
|
||||
[
|
||||
'components',
|
||||
|
|
|
@ -41,6 +41,7 @@ const client = {
|
|||
(neutrino) => {
|
||||
web({
|
||||
clean: false,
|
||||
hot: false,
|
||||
html: {
|
||||
inject: false,
|
||||
template: `${neutrino.options.root}/client/index.ejs`,
|
||||
|
@ -128,6 +129,7 @@ client.use.push((neutrino) => {
|
|||
const isProduction = 'production' === neutrino.config.get('mode');
|
||||
if (!isProduction) {
|
||||
neutrino.config.devServer
|
||||
.hot(false)
|
||||
.host(HTTP_DEV_HOST)
|
||||
.port(HTTP_DEV_PORT)
|
||||
.public(HTTP_DEV_PUBLIC);
|
||||
|
|
|
@ -8,6 +8,7 @@ const middleware = (neutrino) => {
|
|||
});
|
||||
neutrino.use(react({
|
||||
clean: false,
|
||||
hot: false,
|
||||
html: {
|
||||
inject: false,
|
||||
template: `${neutrino.options.root}/client/index.ejs`,
|
||||
|
|
Loading…
Reference in New Issue
Block a user