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.
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: [
|
|
|
|
'./src/assets/index.js',
|
2020-10-15 20:45:15 +00:00
|
|
|
'./src/assets/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
|
|
|
}
|