Implemented a snake game with redux
This commit is contained in:
25
webpack.production.config.js
Normal file
25
webpack.production.config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const webpack = require("webpack");
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
target: "web",
|
||||
mode: "production",
|
||||
entry: path.resolve(__dirname, "src/index.js"),
|
||||
output: { path: path.resolve(__dirname, "public") },
|
||||
plugins: [new webpack.HotModuleReplacementPlugin()],
|
||||
devServer: {
|
||||
hot: false,
|
||||
inline: false
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: "babel-loader"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user