mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
chore: add mode and build script
This commit is contained in:

committed by
Nathan Walker

parent
c3b1907eab
commit
e9655716a9
@ -10,6 +10,13 @@ export default function (env: IWebpackEnv): Config {
|
||||
const config = new Config();
|
||||
const distPath = getDistPath(env);
|
||||
const platform = determinePlatformFromEnv(env);
|
||||
const mode = env.production ? 'production' : 'development';
|
||||
|
||||
// set mode
|
||||
config.mode(mode);
|
||||
|
||||
// todo: devtool
|
||||
// config.devtool()
|
||||
|
||||
// look for loaders in
|
||||
// - @nativescript/webpack/loaders
|
||||
|
Reference in New Issue
Block a user