Swap back to standard webpack-cli based build.

This commit is contained in:
Dannon Baker
2020-02-19 09:05:13 -05:00
parent 209b452d67
commit 04ac25ce56
2 changed files with 3 additions and 12 deletions
@@ -1,10 +0,0 @@
const wpConfig = require("./webpack.config.js");
const webpack = require("webpack");
const compiler = webpack(wpConfig);
compiler.run((err, stats) => {
if (err){
console.log(err);
} else {
console.log("HyphyVision built successfully.");
}
})
@@ -4,7 +4,8 @@
"file-loader": "^5.0.2",
"mini-css-extract-plugin": "^0.9.0",
"style-loader": "^1.1.3",
"webpack": "^4.41.6"
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"d3": "3.x",
@@ -17,6 +18,6 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "node build.js"
"build": "webpack --mode production"
}
}