component_ryl 1.0.97 → 1.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/webpack.config.js +6 -18
package/README.md
CHANGED
package/package.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -76,6 +76,12 @@ module.exports = {
|
|
|
76
76
|
|
|
77
77
|
if (process.env.NODE_ENV === "production") {
|
|
78
78
|
module.exports.devtool = "#source-map";
|
|
79
|
+
// 不打包这些包
|
|
80
|
+
// module.exports.externals ={
|
|
81
|
+
// 'vue': "Vue",
|
|
82
|
+
// 'element-ui': "ElementUI",
|
|
83
|
+
// 'tinymce-vue': "TinymceVue",
|
|
84
|
+
// },
|
|
79
85
|
// http://vue-loader.vuejs.org/en/workflow/production.html
|
|
80
86
|
module.exports.plugins = (module.exports.plugins || []).concat([
|
|
81
87
|
new webpack.DefinePlugin({
|
|
@@ -87,24 +93,6 @@ if (process.env.NODE_ENV === "production") {
|
|
|
87
93
|
sourceMap: false, // 不生成map文件
|
|
88
94
|
compress: {
|
|
89
95
|
warnings: false
|
|
90
|
-
},
|
|
91
|
-
runtimeChunk: 'single',
|
|
92
|
-
splitChunks: {
|
|
93
|
-
chunks: 'all',
|
|
94
|
-
maxInitialRequests: Infinity,
|
|
95
|
-
minSize: 20000,
|
|
96
|
-
cacheGroups: {
|
|
97
|
-
vendor: {
|
|
98
|
-
test: /[\\/]node_modules[\\/]/,
|
|
99
|
-
name(module) {
|
|
100
|
-
// get the name. E.g. node_modules/packageName/not/this/part.js
|
|
101
|
-
// or node_modules/packageName
|
|
102
|
-
const packageName = module.context.match(/[\\/]node_modules[\\/](.*?)([\\/]|$)/)[1]
|
|
103
|
-
// npm package names are URL-safe, but some servers don't like @ symbols
|
|
104
|
-
return `npm.${packageName.replace('@', '')}`
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
96
|
}
|
|
109
97
|
}),
|
|
110
98
|
new webpack.LoaderOptionsPlugin({
|