打包优化
This commit is contained in:
parent
3a6a80ec31
commit
2db195d8e2
|
|
@ -9078,15 +9078,6 @@
|
|||
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
|
||||
"dev": true
|
||||
},
|
||||
"inline-manifest-webpack-plugin": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/inline-manifest-webpack-plugin/-/inline-manifest-webpack-plugin-4.0.2.tgz",
|
||||
"integrity": "sha512-j1Q0Y7m2GVsTxnOzQ7YzIlfn5Th2Ga6Ivoqme1G0iGZc8m7R3aQY8HfzLW7ew3CwmqdZb/O26mf9Ak2JA7zzKg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"source-map-url": "0.4.0"
|
||||
}
|
||||
},
|
||||
"inquirer": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz",
|
||||
|
|
|
|||
|
|
@ -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