mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
feat: add xml support to all flavors
This commit is contained in:
@ -253,6 +253,14 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
|||||||
.use('nativescript-worker-loader')
|
.use('nativescript-worker-loader')
|
||||||
.loader('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
|
// default PostCSS options to use
|
||||||
// projects can change settings
|
// projects can change settings
|
||||||
// via postcss.config.js
|
// via postcss.config.js
|
||||||
|
@ -25,13 +25,6 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
|||||||
|
|
||||||
// config.resolve.extensions.add('.xml');
|
// 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
|
// set up core HMR
|
||||||
config.module
|
config.module
|
||||||
.rule('hmr-core')
|
.rule('hmr-core')
|
||||||
|
@ -25,13 +25,6 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
|||||||
|
|
||||||
// config.resolve.extensions.add('.xml');
|
// 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
|
// set up core HMR
|
||||||
config.module
|
config.module
|
||||||
.rule('hmr-core')
|
.rule('hmr-core')
|
||||||
|
Reference in New Issue
Block a user