mirror of
https://github.com/LingChair/LingChair-V0.git
synced 2025-12-09 02:25:50 +08:00
test: webpack
This commit is contained in:
1
webpack_lib/.gitignore
vendored
Normal file
1
webpack_lib/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
node_modules/
|
||||
3
webpack_lib/readme.md
Normal file
3
webpack_lib/readme.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## Webpack
|
||||
|
||||
请从本仓库根目录的 .github 文件夹内找到对应的zip文件,并把 node_modules 解压在此,方可使用
|
||||
20
webpack_lib/webpack_config.js
Normal file
20
webpack_lib/webpack_config.js
Normal 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'],
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user