vue2-client 1.2.34 → 1.2.35

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/vue.config.js CHANGED
@@ -103,27 +103,27 @@ module.exports = {
103
103
  }))
104
104
  }
105
105
  // if prod, add externals
106
- if (isProd) {
107
- config.externals = assetsCDN.externals
108
- }
106
+ // if (isProd) {
107
+ // config.externals = assetsCDN.externals
108
+ // }
109
109
  },
110
110
  chainWebpack: config => {
111
111
  // 生产环境下关闭css压缩的 colormin 项,因为此项优化与主题色替换功能冲突
112
112
  if (isProd) {
113
113
  config.plugin('optimize-css')
114
114
  .tap(args => {
115
- args[0].cssnanoOptions.preset[1].colormin = false
115
+ args[0].cssnanoOptions.preset[1].colormin = false
116
116
  return args
117
117
  })
118
118
  }
119
119
  // 生产环境下使用CDN
120
- if (isProd) {
121
- config.plugin('html')
122
- .tap(args => {
123
- args[0].cdn = assetsCDN
124
- return args
125
- })
126
- }
120
+ // if (isProd) {
121
+ // config.plugin('html')
122
+ // .tap(args => {
123
+ // args[0].cdn = assetsCDN
124
+ // return args
125
+ // })
126
+ // }
127
127
  config.resolve.alias.set('@vue2-client', path.resolve(__dirname, 'src'))
128
128
  },
129
129
  css: {