⬆️ 升级依赖
This commit is contained in:
parent
880e2c87ba
commit
ff8dda1e8b
@ -57,7 +57,7 @@ export default {
|
||||
{src: '~/plugins/extend'},
|
||||
{src: '~/plugins/axios'},
|
||||
{src: '~/plugins/element-ui'},
|
||||
{src: '~/plugins/vditor', ssr: false},
|
||||
{src: '~/plugins/vditor', ssr: false}
|
||||
// {src: '~/plugins/vue-cropper', ssr: false}
|
||||
],
|
||||
/*
|
||||
@ -100,8 +100,20 @@ export default {
|
||||
extend(config, ctx) {
|
||||
config.plugins.unshift(new LodashModuleReplacementPlugin())
|
||||
// rules[2].use[0] is babel-loader
|
||||
config.module.rules.push({ test: /\.txt$/, use: 'raw-loader' })
|
||||
config.module.rules.push({test: /\.txt$/, use: 'raw-loader'})
|
||||
config.module.rules[2].use[0].options.plugins = ['lodash']
|
||||
},
|
||||
babel: {
|
||||
presets({ envName }) {
|
||||
return [
|
||||
[
|
||||
'@nuxt/babel-preset-app',
|
||||
{
|
||||
loose: true
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,14 +15,14 @@
|
||||
"babel-plugin-lodash": "^3.3.4",
|
||||
"cookieparser": "^0.1.0",
|
||||
"echarts": "^4.9.0",
|
||||
"element-ui": "^2.15.1",
|
||||
"element-ui": "^2.15.5",
|
||||
"express": "^4.17.1",
|
||||
"js-cookie": "^2.2.1",
|
||||
"net": "^1.0.2",
|
||||
"nuxt": "^2.15.3",
|
||||
"nuxt": "^2.15.8",
|
||||
"raw-loader": "^4.0.2",
|
||||
"save-svg-as-png": "^1.4.17",
|
||||
"simple-icons": "^5.8.0",
|
||||
"simple-icons": "^5.8.1",
|
||||
"sockjs-client": "^1.5.0",
|
||||
"stompjs": "^2.3.3",
|
||||
"vditor": "^3.8.4",
|
||||
@ -33,6 +33,6 @@
|
||||
"@nuxtjs/proxy": "^2.1.0",
|
||||
"lodash-webpack-plugin": "^0.11.6",
|
||||
"node-sass": "^5.0.0",
|
||||
"sass-loader": "^10.1.1"
|
||||
"sass-loader": "^10.2.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user