mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
chore: more base configuration
This commit is contained in:
@ -2,9 +2,16 @@ import base from './base';
|
||||
import { IWebpackEnv } from '@nativescript/webpack';
|
||||
import Config from 'webpack-chain';
|
||||
|
||||
// todo: add base configuration for core
|
||||
// todo: add base configuration for core with javascript
|
||||
export default function (env: IWebpackEnv): Config {
|
||||
const config = base(env);
|
||||
|
||||
// set up xml
|
||||
config.module
|
||||
.rule('xml')
|
||||
.test(/\.xml$/)
|
||||
.use('xml-loader')
|
||||
.loader('xml-loader');
|
||||
|
||||
return config;
|
||||
}
|
||||
|
Reference in New Issue
Block a user