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

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