mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
refactor: use chained configs internally
This commit is contained in:
@ -1,13 +1,9 @@
|
||||
import { Configuration } from 'webpack';
|
||||
import Config from 'webpack-chain';
|
||||
import { IWebpackEnv } from './index';
|
||||
|
||||
// todo: add base configuration that's shared across all flavors
|
||||
export default function (env): Configuration {
|
||||
const config = new Config()
|
||||
config.entry('')
|
||||
return {
|
||||
entry: {
|
||||
'bundle.js': 'bundle.js',
|
||||
},
|
||||
};
|
||||
export default function (env: IWebpackEnv): Config {
|
||||
const config = new Config();
|
||||
config.entry('');
|
||||
return config;
|
||||
}
|
||||
|
Reference in New Issue
Block a user