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