From 329da5fb992f6a3400fd20f34efb1752f05030e5 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 11 Feb 2019 19:30:16 +0100 Subject: [PATCH] Move webpack config to root Then we can include all server repo webpack configs in 1 go Signed-off-by: Roeland Jago Douma --- core/{webpack.common.js => webpack.js} | 0 package.json | 4 ++-- webpack.common.js | 3 +++ core/webpack.dev.js => webpack.dev.js | 0 core/webpack.prod.js => webpack.prod.js | 0 5 files changed, 5 insertions(+), 2 deletions(-) rename core/{webpack.common.js => webpack.js} (100%) create mode 100644 webpack.common.js rename core/webpack.dev.js => webpack.dev.js (100%) rename core/webpack.prod.js => webpack.prod.js (100%) diff --git a/core/webpack.common.js b/core/webpack.js similarity index 100% rename from core/webpack.common.js rename to core/webpack.js diff --git a/package.json b/package.json index 580bbb975d..caae290a8e 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "test": "tests" }, "scripts": { - "build": "webpack --progress --hide-modules --config core/webpack.prod.js", - "dev": "webpack --progress --watch --config core/webpack.dev.js" + "build": "webpack --progress --hide-modules --config webpack.prod.js", + "dev": "webpack --progress --watch --config webpack.dev.js" }, "repository": { "type": "git", diff --git a/webpack.common.js b/webpack.common.js new file mode 100644 index 0000000000..a182fd7424 --- /dev/null +++ b/webpack.common.js @@ -0,0 +1,3 @@ +const core = require('./core/webpack'); + +module.exports = [].concat(core); diff --git a/core/webpack.dev.js b/webpack.dev.js similarity index 100% rename from core/webpack.dev.js rename to webpack.dev.js diff --git a/core/webpack.prod.js b/webpack.prod.js similarity index 100% rename from core/webpack.prod.js rename to webpack.prod.js