vue-cli3 hot update configuration, update failed to solve the problem of heat, save the code browser automatically refresh

 

Css heat update configuration vue, config.js in

const IS_PROD = ['production', 'test'].includes(process.env.NODE_ENV)
 css: {
        // whether to use css separate plug-ExtractTextPlugin
        extract: IS_PROD,
        // open the CSS source maps?
        sourceMap: false,
        // css preset configuration items
        loaderOptions: {
        },
        // 启用 CSS modules for all css / pre-processor files.
        modules: false,
  },

Then npm run serve to restart the project

 

Guess you like

Origin www.cnblogs.com/ajaxlu/p/11512012.html