lbry-desktop/src/renderer/webpack.dev.js

33 lines
742 B
JavaScript
Raw Normal View History

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-22 23:38:01 +01:00
const FlowBabelWebpackPlugin = require('./flowtype-plugin');
2017-11-08 04:54:22 +01:00
const PATHS = {
2017-11-24 15:31:05 +01:00
dist: path.join(__dirname, "..", "main", "dist")
};
2017-11-08 04:54:22 +01:00
module.exports = merge(common, {
output: {
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
2017-11-22 23:38:01 +01:00
}),
new FlowBabelWebpackPlugin({
warn: true
2017-11-08 04:54:22 +01:00
})
]
2017-11-22 23:38:01 +01:00
});