yakuza0 2.20.3 → 2.20.4

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.
@@ -60,12 +60,13 @@ _yakuza.global.NUXT_BUILD_FILENAME_INDEX = 0;
60
60
 
61
61
  exports.default = function (config) {
62
62
  var nuxtConf = _config2.default.nuxt;
63
+ var appConf = config.appConf;
63
64
  var extendFn = function extendFn(conf, ctx) {};
64
65
 
65
66
  config.build = (0, _extends3.default)({}, config.build, {
66
- extractCSS: {
67
- ignoreOrder: false
68
- },
67
+ // extractCSS: {
68
+ // ignoreOrder: false,
69
+ // },
69
70
  // extractCSS: !yConf.dev,
70
71
  corejs: _config2.default.resolve.babelConf.corejs,
71
72
  transpile: [_yakuza._.regAnd(['@rdc', 'ant-design-vue']), _yakuza._.regAnd(['.cache', 'yakuza0', 'middleware']), 'nuxt', 'delay', 'node-fetch', 'data-uri-to-buffer', 'fetch-blob', 'quill-image-drop-module'].concat((0, _toConsumableArray3.default)(nuxtConf.build && nuxtConf.build.tsl || [])),
@@ -78,7 +79,9 @@ exports.default = function (config) {
78
79
 
79
80
  // config.build.extractCSS = true;
80
81
  if (!_config2.default.dev) {
81
- // config.build.extractCSS = true;
82
+ config.build.extractCSS = {
83
+ ignoreOrder: false
84
+ };
82
85
  // config.build.optimization = {
83
86
  // splitChunks: {
84
87
  // chunks: 'async',
@@ -169,6 +172,20 @@ exports.default = function (config) {
169
172
  }
170
173
  }
171
174
  });
175
+
176
+ // if (!appConf.server.openHmr) {
177
+ // const hmrIndex = conf.plugins.findIndex(p => {
178
+ // return p.constructor.name === 'HotModuleReplacementPlugin';
179
+ // });
180
+ //
181
+ // if (hmrIndex !== -1) {
182
+ // conf.plugins.splice(hmrIndex, 1)
183
+ // }
184
+ //
185
+ // conf.plugins.forEach(p => {
186
+ // console.log(p.constructor.name);
187
+ // });
188
+ // }
172
189
  };
173
190
 
174
191
  // config.build.vendor = ['babel-polyfill'];
@@ -200,7 +217,7 @@ exports.default = function (config) {
200
217
  // parallel: true,
201
218
  // cache: false,
202
219
  // hardSource: false,
203
- // cache: yConf.dev,
220
+ cache: _config2.default.dev,
204
221
  hardSource: _config2.default.dev,
205
222
  "html.minify": {
206
223
  sortAttributes: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.20.3",
3
+ "version": "2.20.4",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -269,6 +269,7 @@ var render = function () {
269
269
  cHost: null,
270
270
  basePath: '/',
271
271
  openBasePath: false,
272
+ // openHmr: true,
272
273
 
273
274
  // docker: false,
274
275
  mockIP: false,