mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
19 lines
380 B
TypeScript
19 lines
380 B
TypeScript
import Config from 'webpack-chain';
|
|
|
|
import { IWebpackEnv } from '../index';
|
|
import base from './base';
|
|
|
|
// todo: add base configuration for core with javascript
|
|
export default function (config: Config, env: IWebpackEnv): Config {
|
|
base(config, env);
|
|
|
|
// set up xml
|
|
config.module
|
|
.rule('xml')
|
|
.test(/\.xml$/)
|
|
.use('xml-loader')
|
|
.loader('xml-loader');
|
|
|
|
return config;
|
|
}
|