component_ryl 1.0.97 → 1.0.99

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component_ryl",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
4
4
  "private": false,
5
5
  "description": "自定义通用组件",
6
6
  "author": "renyuliang <785788909@qq.com>",
@@ -10,23 +10,23 @@
10
10
  },
11
11
  "main": "dist/build.js",
12
12
  "dependencies": {
13
+ "@tinymce/tinymce-vue": "^3.0.1",
13
14
  "element-ui": "^2.15.10",
15
+ "tinymce": "^5.10.2",
14
16
  "vue": "^2.6.12"
15
17
  },
16
18
  "devDependencies": {
17
- "@tinymce/tinymce-vue": "^3.0.1",
18
19
  "babel-core": "^6.26.0",
19
20
  "babel-loader": "^7.1.2",
20
21
  "babel-plugin-component": "^1.1.1",
21
22
  "babel-preset-env": "^1.6.0",
22
23
  "babel-preset-stage-3": "^6.24.1",
23
24
  "cross-env": "^5.0.5",
24
- "css-loader": "^0.28.11",
25
+ "css-loader": "^0.28.11",
25
26
  "file-loader": "^1.1.11",
26
27
  "sass": "^1.52.3",
27
28
  "sass-loader": "^7.3.1",
28
29
  "style-loader": "^0.23.1",
29
- "tinymce": "^5.10.2",
30
30
  "url-loader": "^0.6.2",
31
31
  "vue-cli-plugin-element": "^1.0.1",
32
32
  "vue-fragment": "^1.5.2",
package/webpack.config.js CHANGED
@@ -76,6 +76,11 @@ 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
+ },
79
84
  // http://vue-loader.vuejs.org/en/workflow/production.html
80
85
  module.exports.plugins = (module.exports.plugins || []).concat([
81
86
  new webpack.DefinePlugin({
@@ -87,24 +92,6 @@ if (process.env.NODE_ENV === "production") {
87
92
  sourceMap: false, // 不生成map文件
88
93
  compress: {
89
94
  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
95
  }
109
96
  }),
110
97
  new webpack.LoaderOptionsPlugin({