|
@@ -4,12 +4,21 @@ let targetUrl = 'http://mteadev.dayaedu.com'
|
|
|
// let targetUrl = 'http://testadm.dayaedu.com/'
|
|
|
// let targetUrl = 'http://192.168.3.48:8080'
|
|
|
module.exports = {
|
|
|
- publicPath: './',
|
|
|
- // 生产环境 sourceMap
|
|
|
- productionSourceMap: false,
|
|
|
- // 调整内部的 webpack 配置。
|
|
|
- // 查阅 https://github.com/vuejs/vue-doc-zh-cn/vue-cli/webpack.md
|
|
|
chainWebpack: config => {
|
|
|
+ config.devtool('inline-source-map')
|
|
|
+ config.output.filename('[name].[hash].js').end();
|
|
|
+ // // chunkHash
|
|
|
+ // config.output.filename(`js/[name].[chunkhash].${Version}.js`).end();
|
|
|
+ // config.output.chunkFilename(`js/[id].[chunkhash].${Version}.js`).end();
|
|
|
+ // config.output.filename(`js/[name].[chunkhash].js`).end();
|
|
|
+ // config.output.chunkFilename(`js/[id].[chunkhash].js`).end();
|
|
|
+ // config.entry.app = ['babel-polyfill', './src/main.js']
|
|
|
+
|
|
|
+ // config.resolve.symlinks(true)
|
|
|
+ // config.plugin('html').tap(args => {
|
|
|
+ // args[0].chunksSortMode = 'none'
|
|
|
+ // return args
|
|
|
+ // })
|
|
|
config.plugin('html').tap(args => {
|
|
|
args[0].minify = {
|
|
|
removeAttributeQuotes: false
|
|
@@ -17,6 +26,13 @@ module.exports = {
|
|
|
return args
|
|
|
})
|
|
|
},
|
|
|
+ // eslint-loader 是否在保存的时候检查
|
|
|
+ lintOnSave: true,
|
|
|
+
|
|
|
+ // 是否使用包含运行时编译器的Vue核心的构建
|
|
|
+ runtimeCompiler: false,
|
|
|
+ // 生产环境 sourceMap
|
|
|
+ productionSourceMap: false,
|
|
|
configureWebpack: () => { },
|
|
|
// 配置 webpack-dev-server 行为。
|
|
|
devServer: {
|