@ray-js/builder-web 0.7.1 → 0.7.3-beta-1
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/lib/build.js +2 -2
- package/package.json +5 -5
package/lib/build.js
CHANGED
|
@@ -188,7 +188,6 @@ function build(options, context) {
|
|
|
188
188
|
},
|
|
189
189
|
]);
|
|
190
190
|
}
|
|
191
|
-
api.callPluginMethod('configWebpack', { config });
|
|
192
191
|
const externals = config.get('externals');
|
|
193
192
|
const internalExternals = {
|
|
194
193
|
react: 'React',
|
|
@@ -200,7 +199,6 @@ function build(options, context) {
|
|
|
200
199
|
else {
|
|
201
200
|
config.set('externals', Object.assign(Object.assign({}, externals), internalExternals));
|
|
202
201
|
}
|
|
203
|
-
api.configIntoWebpackConfig(config);
|
|
204
202
|
if (watch) {
|
|
205
203
|
const defaultHttpPort = parseInt(port);
|
|
206
204
|
const httpPort = yield (0, detect_port_1.default)(defaultHttpPort);
|
|
@@ -232,7 +230,9 @@ function build(options, context) {
|
|
|
232
230
|
modules: false,
|
|
233
231
|
},
|
|
234
232
|
};
|
|
233
|
+
// todo web端的插件和ray-core 不一致
|
|
235
234
|
const ip = address_1.default.ip();
|
|
235
|
+
api.callPluginMethod('configWebpack', { config });
|
|
236
236
|
const compiler = (0, webpack_1.default)(config.toConfig());
|
|
237
237
|
const server = new webpack_dev_server_1.default(compiler, devOptions);
|
|
238
238
|
server.listen(httpPort, '0.0.0.0', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/builder-web",
|
|
3
|
-
"version": "0.7.1",
|
|
3
|
+
"version": "0.7.3-beta-1",
|
|
4
4
|
"description": "Ray builder for web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"watch": "tsc -p ./tsconfig.build.json --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ray-js/babel-preset-standard": "^0.7.1",
|
|
25
|
-
"@ray-js/shared": "^0.7.1",
|
|
26
|
-
"@ray-js/types": "^0.7.1",
|
|
24
|
+
"@ray-js/babel-preset-standard": "^0.7.3-beta-1",
|
|
25
|
+
"@ray-js/shared": "^0.7.3-beta-1",
|
|
26
|
+
"@ray-js/types": "^0.7.3-beta-1",
|
|
27
27
|
"address": "^1.1.2",
|
|
28
28
|
"autoprefixer": "9.x",
|
|
29
29
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"email": "tuyafe@tuya.com"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7bf0a660651d23a0a5580e2d18f956689c30db0c",
|
|
62
62
|
"repository": {}
|
|
63
63
|
}
|