-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
21 lines (18 loc) · 848 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
21 lines (18 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var webpackCommonConfig = require("./webpack.common.js");
// NOTE: if you need to override any configurations, please see webpack.common.js
// and then override here!
var webpackConfig = webpackCommonConfig.config(
{
allowTypeScript: true,
allowScss: true,
transpiler: "ts-loader",
dirs: webpackCommonConfig.defaults.dirs,
extensions: webpackCommonConfig.defaults.extensions,
assetsToCopyIfExternal: webpackCommonConfig.defaults.assetsToCopyIfExternal,
assetsToCopyIfInternal: webpackCommonConfig.defaults.assetsToCopyIfInternal,
vendor: webpackCommonConfig.defaults.vendor
}
);
// we want globalize to use imports-loader so it doesn't freak out
webpackConfig.module.rules.push({ test: /globalize/, loader: "imports-loader?define=>false" });
module.exports = webpackConfig;