Browse Source

Move webpack config to root

Then we can include all server repo webpack configs in 1 go

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Roeland Jago Douma 8 months ago
parent
commit
329da5fb99
5 changed files with 5 additions and 2 deletions
  1. 0 0
      core/webpack.js
  2. 2 2
      package.json
  3. 3 0
      webpack.common.js
  4. 0 0
      webpack.dev.js
  5. 0 0
      webpack.prod.js

core/webpack.common.js → core/webpack.js


+ 2 - 2
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",

+ 3 - 0
webpack.common.js

@@ -0,0 +1,3 @@
+const core = require('./core/webpack');
+
+module.exports = [].concat(core);

core/webpack.dev.js → webpack.dev.js


core/webpack.prod.js → webpack.prod.js