feat: add worker support

This commit is contained in:
Igor Randjelovic
2021-03-07 19:33:52 +01:00
parent 02d2befc8a
commit d2abd58174
9 changed files with 273 additions and 0 deletions

View File

@ -182,6 +182,14 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
},
});
config.module
.rule('workers')
.test(/\.(js|ts)$/)
.exclude.add(/node_modules/)
.end()
.use('nativescript-worker-loader')
.loader('nativescript-worker-loader')
// default PostCSS options to use
// projects can change settings
// via postcss.config.js