|
@@ -1,14 +1,7 @@
|
|
|
-const path = require("path"); // NodeJS builtin.
|
|
|
+const commonConfig = require("./build-utils/webpack.common");
|
|
|
|
|
|
// Export a function returning config instead of a static config.
|
|
|
// The purpose is to allow use of the environment.
|
|
|
module.exports = env => {
|
|
|
- console.log(env);
|
|
|
- return {
|
|
|
- entry: "./src/",
|
|
|
- output: {
|
|
|
- filename: "bundle.js",
|
|
|
- path: path.join(__dirname, "dist") // path must be absolute.
|
|
|
- }
|
|
|
- };
|
|
|
+ return { ...commonConfig };
|
|
|
};
|