Last active
October 19, 2021 15:53
-
-
Save williameliel/8867f6d0b5709c29b959c44f4a75b598 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
const webpack = require("webpack"); | |
module.exports = { | |
entry: "./src/index.js", | |
mode: "development", | |
target: "web", | |
devServer: { | |
historyApiFallback: true, | |
}, | |
output: { | |
path: `${__dirname}/dist`, | |
filename: "bundle.js", | |
}, | |
plugins: [ | |
new HtmlWebpackPlugin({ template: "./src/index.html" }), | |
new webpack.ProvidePlugin({ | |
process: "process/browser", | |
}), | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment