-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
27 lines (26 loc) · 815 Bytes
/
webpack.dev.js
File metadata and controls
27 lines (26 loc) · 815 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
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const common = require('./webpack.common');
const { merge } = require('webpack-merge');
const path = require("path");
module.exports = merge(common, {
mode: "development",
target: "web",
devtool: "source-map",
output: {
filename: "[name].js",
path: path.resolve(__dirname, "dist"),
assetModuleFilename: "./assets/[name][ext]"
},
plugins: [
new MiniCssExtractPlugin(),
new HtmlWebpackPlugin({
filename: "index.html",
template: "./src/index.html"
}),
new HtmlWebpackPlugin({
filename: "fullscreen.html",
template: "./src/fullscreen.html"
}),
],
});