mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore(migrate): apps/* to webpack5 (#9606)
This commit is contained in:
21
apps/automated/webpack.config.js
Normal file
21
apps/automated/webpack.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const webpack = require("@nativescript/webpack");
|
||||
|
||||
module.exports = (env) => {
|
||||
webpack.init(env);
|
||||
|
||||
webpack.Utils.addCopyRule('ui/web-view/*.html');
|
||||
|
||||
webpack.chainWebpack(config => {
|
||||
config.plugin('DefinePlugin').tap(args => {
|
||||
Object.assign(args[0], {
|
||||
__CI__: !!process.env.CI,
|
||||
})
|
||||
|
||||
return args
|
||||
})
|
||||
})
|
||||
|
||||
return webpack.resolveConfig();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user