Initial commit

This commit is contained in:
takiguchi
2019-12-01 16:41:11 +01:00
commit 0e3d1d8749
7 changed files with 5694 additions and 0 deletions

27
webpack.config.js Normal file
View File

@@ -0,0 +1,27 @@
const webpack = require("webpack");
const path = require("path");
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
let config = {
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "./public"),
filename: "./bundle.js"
},
devServer: {
contentBase: path.resolve(__dirname, "./public"),
historyApiFallback: true,
inline: true,
open: true,
hot: true
},
plugins: [
new UglifyJSPlugin(),
new webpack.SourceMapDevToolPlugin({})
],
devtool: "eval-source-map"
}
module.exports = config;