summaryrefslogtreecommitdiff
path: root/webpack.config.js
blob: 3b5b8c16429c576d31e232662f1ec81e25c19420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const path = require("path")

module.exports = {
	module: {
		rules: [
			{
				test: /\.css$/i,
				use: ["style-loader", "css-loader"],
			},
			{
				test: /\.svg$/,
				loader: "svg-sprite-loader",
				options: {
					symbolId: filePath => path.basename(filePath).replace(/_[0-9]+dp_.*/, ""),
				},
			},
		],
	},
	mode: "development",
}