test: webpack

This commit is contained in:
MoonLeeeaf
2024-05-25 10:44:35 +08:00
parent 9c1dc4c540
commit 71b5b5b2df
28 changed files with 1875 additions and 12 deletions

1
webpack_lib/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
node_modules/

3
webpack_lib/readme.md Normal file
View File

@@ -0,0 +1,3 @@
## Webpack
请从本仓库根目录的 .github 文件夹内找到对应的zip文件并把 node_modules 解压在此,方可使用

View File

@@ -0,0 +1,20 @@
const path = require('path')
const { BannerPlugin } = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
module.exports = {
entry: '../build_cache/index.js',
output: {
filename: 'index.js',
path: path.resolve(__dirname, '../ling_chair_http'),
},
module: {
rules: [
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
],
},
}