| | |
| | | |
| | | build: { |
| | | // Template for index.html |
| | | index: path.resolve(__dirname, '../dist/index.html'), |
| | | index: path.resolve(__dirname, '../dist/prod/index.html'), |
| | | |
| | | // Paths |
| | | assetsRoot: path.resolve(__dirname, '../dist'), |
| | | assetsRoot: path.resolve(__dirname, '../dist/prod/'), |
| | | assetsSubDirectory: 'static', |
| | | assetsPublicPath: '/', |
| | | |
| | | assetsStaticPath: path.resolve(__dirname, '../dist/'), //配置文件打包地址 |
| | | /** |
| | | * Source Maps |
| | | */ |
| | | |
| | | productionSourceMap: true, |
| | | productionSourceMap: false, |
| | | // https://webpack.js.org/configuration/devtool/#production |
| | | devtool: '#source-map', |
| | | |
| | |
| | | // `npm run build --report` |
| | | // Set to `true` or `false` to always turn it on or off |
| | | bundleAnalyzerReport: process.env.npm_config_report |
| | | }, |
| | | build_test: { |
| | | index: path.resolve(__dirname, '../dist/test/index.html'), |
| | | assetsRoot: path.resolve(__dirname, '../dist/test/'), |
| | | assetsSubDirectory: 'static', |
| | | assetsStaticPath: path.resolve(__dirname, '../dist/'), //配置文件打包地址 |
| | | }, |
| | | build_dev: { |
| | | index: path.resolve(__dirname, '../dist/dev/index.html'), |
| | | assetsRoot: path.resolve(__dirname, '../dist/dev/'), |
| | | assetsSubDirectory: 'static', |
| | | assetsStaticPath: path.resolve(__dirname, '../dist/'), //配置文件打包地址 |
| | | } |
| | | } |