mirror of
https://github.com/LamGC/wp-asciiplayer.git
synced 2025-12-15 22:50:45 +00:00
feat: The first available version.
This commit is contained in:
24
asciiplayer/webpack.config.js
Normal file
24
asciiplayer/webpack.config.js
Normal file
@ -0,0 +1,24 @@
|
||||
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'
|
||||
})
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user