diff options
Diffstat (limited to 'static/webpack.config.js')
| -rw-r--r-- | static/webpack.config.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/static/webpack.config.js b/static/webpack.config.js new file mode 100644 index 0000000..6204e46 --- /dev/null +++ b/static/webpack.config.js @@ -0,0 +1,27 @@ +const path = require("path") + +module.exports = { + module: { + rules: [ + { + test: /\.css$/i, + use: [ + "style-loader", + "css-loader", + { + loader: "postcss-loader", + options: { postcssOptions: { plugins: [ require("@tailwindcss/postcss") ] } }, + }, + ], + }, + { + test: /\.svg$/, + loader: "svg-sprite-loader", + options: { + symbolId: filePath => "sprite-" + path.basename(filePath).replace(/_[0-9]+dp_.*/, ""), + }, + }, + ], + }, + mode: "development", +} |
