v0.1 #1

Merged
niklas merged 17 commits from develop into master 2020-04-22 14:53:02 +00:00
Showing only changes of commit 5f79a68066 - Show all commits

View File

@ -5,6 +5,8 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const path = require("path");
const DEVELOPMENT = process.env.NODE_ENV === "development";
module.exports = {
context: path.join(__dirname, "src"),
resolve: {
@ -15,7 +17,7 @@ module.exports = {
path: path.join(__dirname, "dist"),
filename: "bundle.js"
},
devtool: "source-map",
devtool: DEVELOPMENT ? "source-map" : false,
devServer: {
contentBase: "./dist",
inline: true,
@ -53,7 +55,8 @@ module.exports = {
new HtmlWebpackPlugin({
filename: "index.html",
template: "index.html",
hash: true
hash: true,
minify: !DEVELOPMENT
}),
new MiniCssExtractPlugin()
]