|
@@ -4,15 +4,13 @@ const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV);
|
|
|
const resolve = (dir) => path.join(__dirname, dir);
|
|
|
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
|
|
module.exports = {
|
|
|
- publicPath: IS_PROD ? process.env.VUE_APP_PUBLIC_PATH : "./",
|
|
|
+ publicPath: "./",
|
|
|
indexPath: 'index.html',
|
|
|
- outputDir: process.env.outputDir || 'dist',
|
|
|
+ outputDir: 'dist',
|
|
|
assetsDir: 'static',
|
|
|
lintOnSave: false,
|
|
|
runtimeCompiler: true,
|
|
|
productionSourceMap: !IS_PROD,
|
|
|
- parallel: require("os").cpus().length > 1,
|
|
|
- pwa: {},
|
|
|
chainWebpack: config => {
|
|
|
config.resolve.symlinks(true);
|
|
|
|
|
@@ -68,22 +66,6 @@ module.exports = {
|
|
|
config.plugins = [...config.plugins, ...plugins];
|
|
|
}
|
|
|
},
|
|
|
- pages: {
|
|
|
- index: {
|
|
|
-
|
|
|
- entry: 'src/main.js',
|
|
|
-
|
|
|
- template: 'public/index.html',
|
|
|
-
|
|
|
- filename: 'index.html',
|
|
|
-
|
|
|
-
|
|
|
- title: '国电电力宁夏新能源集中监控系统',
|
|
|
-
|
|
|
-
|
|
|
- chunks: ['chunk-vendors', 'chunk-common', 'index']
|
|
|
- },
|
|
|
- },
|
|
|
devServer: {
|
|
|
open: true,
|
|
|
}
|