Simplify build scripts and implement preliminary tests

This commit is contained in:
hensm
2018-06-11 03:42:04 +01:00
parent 7cb626841f
commit f20f96cf10
19 changed files with 6021 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ const webpack_copy = require("copy-webpack-plugin");
const include_path = path.resolve(__dirname, "src");
const output_path = path.resolve(__dirname, "dist");
const output_path = path.resolve(__dirname, "../dist/unpacked");
module.exports = {
entry: {
@@ -22,9 +22,8 @@ module.exports = {
, path: `${output_path}`
}
, plugins: [
new webpack.optimize.UglifyJsPlugin()
//, new webpack.optimize.CommonsChunkPlugin("lib/init.bundle")
, new webpack.DefinePlugin({
new webpack.DefinePlugin({
"process.env.NODE_ENV": `"production"`
})