feat: add xml support to all flavors

This commit is contained in:
Eduardo Speroni
2021-05-08 17:04:12 -03:00
parent a9eed7e4c6
commit 20a8beaeb1
3 changed files with 8 additions and 14 deletions

View File

@ -253,6 +253,14 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
.use('nativescript-worker-loader')
.loader('nativescript-worker-loader');
// config.resolve.extensions.add('.xml');
// set up xml
config.module
.rule('xml')
.test(/\.xml$/)
.use('xml-namespace-loader')
.loader('xml-namespace-loader');
// default PostCSS options to use
// projects can change settings
// via postcss.config.js

View File

@ -25,13 +25,6 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
// config.resolve.extensions.add('.xml');
// set up xml
config.module
.rule('xml')
.test(/\.xml$/)
.use('xml-namespace-loader')
.loader('xml-namespace-loader');
// set up core HMR
config.module
.rule('hmr-core')

View File

@ -25,13 +25,6 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
// config.resolve.extensions.add('.xml');
// set up xml
config.module
.rule('xml')
.test(/\.xml$/)
.use('xml-namespace-loader')
.loader('xml-namespace-loader');
// set up core HMR
config.module
.rule('hmr-core')