1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
fedihub-website/webpack.config.js
2020-10-16 01:39:33 +05:00

30 lines
568 B
JavaScript

const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
module.exports = {
entry: [
'./src/assets/index.js',
'./src/assets/index.css',
],
output: {
path: path.resolve(__dirname, 'public/assets'),
publicPath: '/assets/',
filename: 'bundle.js',
},
plugins: [
new MiniCssExtractPlugin({
filename: 'bundle.css',
}),
],
module: {
rules: [
{
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
],
},
],
},
}