Initial Config of components

- eleventy
- tailwindcss
- postcss
- webpack
This commit is contained in:
Philipp Klüter
2021-09-15 08:00:11 +02:00
parent 61bf73dc36
commit bad5d0302a
7 changed files with 87 additions and 0 deletions

24
webpack.config.js Normal file
View File

@@ -0,0 +1,24 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
entry: './src/_bundle/main.js',
mode: process.env.NODE_ENV,
module: {
rules: [
{
test: /\.pcss$/i,
use: [MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader'],
},
],
},
output: {
path: path.resolve(__dirname, 'dist', 'assets'),
filename: 'main.bundle.js',
},
plugins: [
new MiniCssExtractPlugin({
filename: 'main.bulde.css',
}),
],
};