-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
26 lines (25 loc) · 770 Bytes
/
Copy pathwebpack.dev.js
File metadata and controls
26 lines (25 loc) · 770 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
const path = require("path");
const common = require("./webpack.common");
const merge = require("webpack-merge");
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = merge(common, {
mode: "development",
output: {
filename: "[name].bundle.js",
path: path.resolve(__dirname, "dist")
},
plugins: [ new HtmlWebpackPlugin({
template: "./src/index.html"
})],
module: {
rules: [
{
test: /\.scss$/,
use: [
{ loader: "style-loader" }, // 3. inject styles into DOM
{ loader: "css-loader" }, // 2. second run this
{ loader: "sass-loader"} // 1. run first
],
}]
},
});