打包优化
Former-commit-id: 2db195d8e2
Former-commit-id: c512152169f92f0d9dda2d135e6a167f7c5d7ef5
Former-commit-id: 0f566d540a12cc1294184d3d64d954ab9986066a
Former-commit-id: fc3066fdfb55373a87c91be958577e676abb7982 [formerly 8d0c30c6ce2eec173b16ed0e1100c2c432cac6e1]
Former-commit-id: 75f81d72618f29f1416a7291c3d01ce4ebc393ec
Former-commit-id: 328700337d2bb3758c55920ab61fa3c49c5afe1b
Former-commit-id: 72d638cec7562bf92623589d7749c50050e34480
Former-commit-id: 8a1e2422f5a627be7a3b58ade522d70bde59c4e8
Former-commit-id: 15998720b5e77a4d0a15460f99ed13d6fa61927a
This commit is contained in:
parent
cee7eb3ba3
commit
22c72a7af7
|
|
@ -1 +1 @@
|
|||
d5b6db76fb2766c6c4500653fe9988f046835785
|
||||
c2732d55dc11af6a140b280f777b787cc42e6599
|
||||
|
|
@ -64,8 +64,6 @@
|
|||
"compression-webpack-plugin": "^3.0.1",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-vue": "^5.2.2",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"inline-manifest-webpack-plugin": "^4.0.2",
|
||||
"optimize-css-assets-webpack-plugin": "^5.0.3",
|
||||
"sass": "^1.21.0",
|
||||
"sass-loader": "^7.1.0",
|
||||
|
|
|
|||
|
|
@ -3,9 +3,6 @@ const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
|||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
||||
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
|
||||
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin')
|
||||
|
||||
const VueFilenameInjector = require('@d2-projects/vue-filename-injector')
|
||||
|
||||
const ThemeColorReplacer = require('webpack-theme-color-replacer')
|
||||
|
|
@ -124,16 +121,6 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
plugins: [
|
||||
// runtime 相关的代码嵌入 indexe.html
|
||||
new HtmlWebpackPlugin({
|
||||
title: 'fle-cli',
|
||||
filename: 'index.html',
|
||||
inject: true,
|
||||
chunks: ['runtime', 'app'],
|
||||
chunksSortMode: 'dependency',
|
||||
minify: {/* */}
|
||||
}),
|
||||
new InlineManifestWebpackPlugin('runtime'),
|
||||
// gzip
|
||||
new CompressionWebpackPlugin({
|
||||
filename: '[path].gz[query]',
|
||||
|
|
|
|||
Loading…
Reference in New Issue