1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
fedihub-website/webpack.config.js

32 lines
619 B
JavaScript
Raw Permalink Normal View History

2020-10-15 18:37:10 +00:00
const path = require('path')
2020-10-15 20:39:01 +00:00
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
2020-10-15 18:37:10 +00:00
module.exports = {
2020-10-15 20:39:01 +00:00
entry: [
2020-10-15 20:54:37 +00:00
'./src/assets/javascripts/index.js',
'./src/assets/stylesheets/index.scss',
2020-10-15 20:39:01 +00:00
],
2020-10-15 18:37:10 +00:00
output: {
path: path.resolve(__dirname, 'public/assets'),
publicPath: '/assets/',
2020-10-15 20:39:33 +00:00
filename: 'bundle.js',
2020-10-15 18:37:10 +00:00
},
2020-10-15 20:39:01 +00:00
plugins: [
new MiniCssExtractPlugin({
2020-10-15 20:39:33 +00:00
filename: 'bundle.css',
2020-10-15 20:39:01 +00:00
}),
],
module: {
rules: [
{
2020-10-15 20:45:15 +00:00
test: /\.scss$/,
2020-10-15 20:39:01 +00:00
use: [
MiniCssExtractPlugin.loader,
'css-loader',
2020-10-15 20:45:15 +00:00
'sass-loader',
2020-10-15 20:39:01 +00:00
],
},
],
},
2020-10-15 18:37:10 +00:00
}