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:54:37 +05:00

31 lines
619 B
JavaScript

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