yakuza0 2.23.24 → 2.23.26-beta.0
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/nuxt/build/index.js +24 -0
- package/package.json +3 -3
- package/pxnpm-lock.yaml +4 -4
- package/utils/inclusive.js +4 -1
package/nuxt/build/index.js
CHANGED
|
@@ -207,6 +207,30 @@ exports.default = function (config) {
|
|
|
207
207
|
// conf.devtool = 'source-map'
|
|
208
208
|
// }
|
|
209
209
|
//
|
|
210
|
+
// console.log(conf);
|
|
211
|
+
// if (conf.) {
|
|
212
|
+
if (!_config2.default.security.isDev) {
|
|
213
|
+
if (!_config2.default.server.browsers.sourceMap.enabled) {
|
|
214
|
+
conf.devtool = false;
|
|
215
|
+
var rules = conf.module.rules;
|
|
216
|
+
rules.forEach(function (rule) {
|
|
217
|
+
if (Array.isArray(rule.oneOf)) {
|
|
218
|
+
rule.oneOf.forEach(function (loaderRule) {
|
|
219
|
+
if (loaderRule.use) {
|
|
220
|
+
loaderRule.use.forEach(function (loader) {
|
|
221
|
+
if (loader.loader && ['css-loader', 'sass-loader', 'postcss-loader'].includes(loader.loader)) {
|
|
222
|
+
loader.options = (0, _extends3.default)({}, loader.options, {
|
|
223
|
+
sourceMap: false
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// }
|
|
210
234
|
conf.module.rules.forEach(function (r) {
|
|
211
235
|
if (r.test.toString().indexOf("png|jpe?g|gif|svg|webp|avif") !== -1) {
|
|
212
236
|
if (r.use && r.use[0] && r.use[0].options && r.use[0].options.limit) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yakuza0",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.26-beta.0",
|
|
4
4
|
"description": "yakuza0 with nuxt",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
"ua-parser-js": "^0.7.20",
|
|
115
115
|
"uglify-js": "^3.17.4",
|
|
116
116
|
"v8-compile-cache": "^2.0.2",
|
|
117
|
-
"yakuza1": "^2.6.
|
|
117
|
+
"yakuza1": "^2.6.21"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
120
|
"@evolvere/nuxt": "2.15.9",
|
|
121
121
|
"core-js": "3.10.1",
|
|
122
122
|
"eslint": "7.2.0",
|
|
123
|
-
"yakuza1": "^2.6.
|
|
123
|
+
"yakuza1": "^2.6.21"
|
|
124
124
|
},
|
|
125
125
|
"__npminstall_done": false
|
|
126
126
|
}
|
package/pxnpm-lock.yaml
CHANGED
|
@@ -285,8 +285,8 @@ dependencies:
|
|
|
285
285
|
specifier: ^2.0.2
|
|
286
286
|
version: 2.4.0
|
|
287
287
|
yakuza1:
|
|
288
|
-
specifier: ^2.6.
|
|
289
|
-
version: 2.6.
|
|
288
|
+
specifier: ^2.6.21
|
|
289
|
+
version: 2.6.21(core-js@3.10.1)
|
|
290
290
|
|
|
291
291
|
devDependencies:
|
|
292
292
|
babel-cli:
|
|
@@ -16782,8 +16782,8 @@ packages:
|
|
|
16782
16782
|
resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==}
|
|
16783
16783
|
dev: false
|
|
16784
16784
|
|
|
16785
|
-
/yakuza1@2.6.
|
|
16786
|
-
resolution: {integrity: sha512-
|
|
16785
|
+
/yakuza1@2.6.21(core-js@3.10.1):
|
|
16786
|
+
resolution: {integrity: sha512-Iex5FJq4MdJoe3WHhr6B0pMoZzbWkzcq7XAnAxx/9zfR20hYk8vCqi740JwHbJ9mjLnITSm7a7LzvId4bciTLQ==}
|
|
16787
16787
|
peerDependencies:
|
|
16788
16788
|
core-js: 3.10.1
|
|
16789
16789
|
dependencies:
|
package/utils/inclusive.js
CHANGED
|
@@ -388,7 +388,10 @@ var render = function () {
|
|
|
388
388
|
},
|
|
389
389
|
browsers: {
|
|
390
390
|
static: '/_static_resource',
|
|
391
|
-
redirect: {}
|
|
391
|
+
redirect: {},
|
|
392
|
+
sourceMap: {
|
|
393
|
+
enabled: false // dev is true, other false
|
|
394
|
+
}
|
|
392
395
|
// ...mainConf.server && mainConf.server.browsers,
|
|
393
396
|
// ...ykConf.server && ykConf.server.browsers,
|
|
394
397
|
},
|