Commit 3d2091a4 authored by lipengcheng 's avatar lipengcheng

auto save

parent 4fde1f1a
// console.log(`process.env1:`, process.env) // console.log(`process.env1:`, process.env);
console.log(`process.env.NODE_ENV1:`, process.env.NODE_ENV) console.log(`process.env.NODE_ENV1:`, process.env.NODE_ENV)
module.exports = { module.exports = {
...@@ -20,9 +20,18 @@ module.exports = { ...@@ -20,9 +20,18 @@ module.exports = {
} }
} }
}, },
lintOnSave: true, chainWebpack: (config) => {
config.module
.rule('eslint')
.use('eslint-loader')
.loader('eslint-loader')
.tap((options) => {
// 保存自动eslint修复
options.fix = true
return options
})
},
css: { css: {
/*为预处理器 loader 传递自定义选项*/
loaderOptions: { loaderOptions: {
sass: { sass: {
prependData: `@import "@/assets/style/index.scss";` prependData: `@import "@/assets/style/index.scss";`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment