summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2018-08-15 15:13:12 -0600
committermokha <mokha@cisco.com>2018-08-15 15:13:12 -0600
commita2e7e858a81ccc38ccd6006d8a212eb23ddaa2be (patch)
tree0d73fc36152f50623153cb7051ebf6417f67f1e7 /webpack.config.js
parent1ed99d021e9a68100ed231cef2e6aeb9587c3f27 (diff)
add css and style loaders.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 088e45f..e035c3b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -9,14 +9,17 @@ const commonConfig = merge([
}),
],
},
+ parts.loadCSS(),
]);
const productionConfig = merge([]);
const developmentConfig = merge([
- host: process.env.HOST,
- port: process.env.PORT,
+ parts.devServer({
+ host: process.env.HOST,
+ port: process.env.PORT,
+ }),
]);
-module.exports = {
+module.exports = mode => {
if (mode === "production") {
return merge(commonConfig, productionConfig, { mode });
}