mirror of
https://github.com/mue/mue.git
synced 2026-07-05 15:41:18 +02:00
45 lines
900 B
JavaScript
45 lines
900 B
JavaScript
const path = require('path');
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
|
module.exports = {
|
|
entry: path.resolve(__dirname, './src/index.js'),
|
|
performance: {
|
|
hints: false
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(js|jsx)$/,
|
|
exclude: /node_modules/,
|
|
use: ['babel-loader']
|
|
},
|
|
{
|
|
test: /\.(sa|sc|c)ss$/,
|
|
use: [
|
|
{
|
|
loader: MiniCssExtractPlugin.loader,
|
|
options: {
|
|
publicPath: ''
|
|
},
|
|
},
|
|
'css-loader',
|
|
'sass-loader'
|
|
],
|
|
},
|
|
{
|
|
test: /\.(woff|woff2|svg)$/,
|
|
type: 'asset/resource'
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: ['.js', '.jsx']
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: '[name].[chunkhash].css',
|
|
chunkFilename: '[id].[chunkhash].chunk.css'
|
|
}),
|
|
]
|
|
};
|