Run postcss for webpack bundle

This commit is contained in:
MrTimscampi 2020-02-28 14:36:42 +01:00
parent fb83b6b244
commit 6c2ed00a61
8 changed files with 432 additions and 19 deletions

View file

@ -4,16 +4,16 @@ const merge = require("webpack-merge");
module.exports = merge(common, {
mode: "production",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "dist"),
libraryTarget: "amd-require"
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: "babel-loader"
},
{
test: /\.css$/i,
use: ["style-loader", "css-loader"]
use: ["style-loader", "css-loader", "postcss-loader"]
},
{
test: /\.(png|jpg|gif)$/i,