Initial Config of components
- eleventy - tailwindcss - postcss - webpack
This commit is contained in:
24
webpack.config.js
Normal file
24
webpack.config.js
Normal 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',
|
||||
}),
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user