mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
21 lines
387 B
JavaScript
21 lines
387 B
JavaScript
const webpack = require("@nativescript/webpack");
|
|
|
|
module.exports = (env) => {
|
|
webpack.init(env);
|
|
|
|
webpack.chainWebpack(config => {
|
|
config.resolve.alias.set('@nativescript/core', '@akylas/nativescript');
|
|
config.plugin('DefinePlugin').tap(args => {
|
|
Object.assign(args[0], {
|
|
__CI__: !!process.env.CI,
|
|
})
|
|
|
|
return args
|
|
})
|
|
})
|
|
|
|
return webpack.resolveConfig();
|
|
};
|
|
|
|
|