Skip to content

Commit

Permalink
feat(nativescript): webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Apr 18, 2021
1 parent f8e8ffa commit e1ab3d4
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,15 @@ const webpack = require("@nativescript/webpack");
module.exports = (env) => {
webpack.init(env);

// ignore warnings from env base
webpack.chainWebpack(config => {
config.set(
'ignoreWarnings',
(config.get('ignoreWarnings') || []).concat([
/environments\/base/
])
)
});

return webpack.resolveConfig();
};

0 comments on commit e1ab3d4

Please sign in to comment.