@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-alpha-32920211110001 → 2.0.1-alpha-33020211130001
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/build/css-loader.conf.js
CHANGED
|
@@ -56,14 +56,14 @@ if (isSass) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
const scssLoader = {
|
|
59
|
-
loader: 'sass-loader',
|
|
59
|
+
loader: '@dcloudio/vue-cli-plugin-uni/packages/sass-loader',
|
|
60
60
|
options: {
|
|
61
61
|
sourceMap: false
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
const sassLoader = {
|
|
66
|
-
loader: 'sass-loader',
|
|
66
|
+
loader: '@dcloudio/vue-cli-plugin-uni/packages/sass-loader',
|
|
67
67
|
options: {
|
|
68
68
|
sourceMap: false
|
|
69
69
|
}
|
|
@@ -267,6 +267,18 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
|
|
|
267
267
|
plugins.push(new CopyWebpackPlugin(array))
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
+
try {
|
|
271
|
+
if (process.env.UNI_HBUILDERX_PLUGINS) {
|
|
272
|
+
require(path.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uni_helpers/lib/bytenode'))
|
|
273
|
+
const {
|
|
274
|
+
W
|
|
275
|
+
} = require(path.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uni_helpers'))
|
|
276
|
+
plugins.push(new W({
|
|
277
|
+
dir: process.env.UNI_INPUT_DIR
|
|
278
|
+
}))
|
|
279
|
+
}
|
|
280
|
+
} catch (e) {}
|
|
281
|
+
|
|
270
282
|
module.exports = function () {
|
|
271
283
|
return {
|
|
272
284
|
target: 'node', // 激活 vue-loader 的 isServer 逻辑
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-hbuilderx",
|
|
3
|
-
"version": "2.0.1-alpha-
|
|
3
|
+
"version": "2.0.1-alpha-33020211130001",
|
|
4
4
|
"description": "HBuilderX plugin for vue-cli 3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"css": "~2.2.1",
|
|
19
19
|
"escodegen": "^1.8.1"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "f813c99b4bfddfe414ce1f937de8df2d4aba36ce"
|
|
22
22
|
}
|