feat: The first available version.

This commit is contained in:
2023-06-05 03:54:08 +08:00
parent 57b7ca2df4
commit fba2455772
10 changed files with 2637 additions and 171 deletions

View 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'
})
]
};