mirror of
https://github.com/LamGC/wp-asciiplayer.git
synced 2025-04-29 14:17:32 +00:00
24 lines
453 B
JavaScript
24 lines
453 B
JavaScript
import path from 'path';
|
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
|
|
export default {
|
|
entry: './src/index.js',
|
|
mode: "production",
|
|
output: {
|
|
path: path.resolve('./dist'),
|
|
filename: 'bundle.js',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/i,
|
|
use: [MiniCssExtractPlugin.loader, 'css-loader'],
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: 'styles.css'
|
|
})
|
|
]
|
|
}; |