2017-11-08 04:54:22 +01:00
|
|
|
const path = require("path");
|
|
|
|
const webpack = require("webpack")
|
|
|
|
const WebpackNotifierPlugin = require("webpack-notifier")
|
|
|
|
const merge = require('webpack-merge');
|
|
|
|
const common = require('./webpack.common.js');
|
|
|
|
|
2017-11-10 03:46:33 +01:00
|
|
|
|
|
|
|
const PATHS = {
|
2017-11-24 22:36:10 +01:00
|
|
|
dist: path.join(__dirname, "..", "app", "dist")
|
2017-11-10 03:46:33 +01:00
|
|
|
};
|
|
|
|
|
2017-11-08 04:54:22 +01:00
|
|
|
module.exports = merge(common, {
|
|
|
|
output: {
|
2017-11-10 03:46:33 +01:00
|
|
|
path: path.join(PATHS.dist, "js"),
|
2017-11-08 04:54:22 +01:00
|
|
|
pathinfo: true
|
|
|
|
},
|
|
|
|
cache: true,
|
|
|
|
devtool: "eval",
|
|
|
|
plugins: [
|
|
|
|
new WebpackNotifierPlugin(),
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
ENV: JSON.stringify("development"),
|
|
|
|
}),
|
|
|
|
new webpack.LoaderOptionsPlugin({
|
|
|
|
debug: true
|
|
|
|
})
|
|
|
|
]
|
|
|
|
});
|