forked from LiveCoronaDetector/livecod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
30 lines (29 loc) · 758 Bytes
/
webpack.config.js
File metadata and controls
30 lines (29 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const webpack = require("webpack");
module.exports = {
entry: {
app: "./src/index.js"
},
plugins: [
new CleanWebpackPlugin(),
new CopyPlugin([{ from: "public/assets", to: "assets" }]),
new HtmlWebpackPlugin({
title: "코로나 맵",
template: "public/index.html"
}),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
],
devServer: {
contentBase: path.join(__dirname, "public")
},
output: {
filename: "[name].bundle.js",
path: path.resolve(__dirname, "dist")
}
};