1 Star 0 Fork 0

zing/learn-nodejs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 991 Bytes
一键复制 编辑 原始数据 按行查看 历史
zing 提交于 2021-04-24 18:16 +08:00 . update apps
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
const app = 'video.js'
module.exports = {
entry: {
app: `./apps/${app}/index.js`,
},
devtool: 'inline-source-map',
plugins: [
new CleanWebpackPlugin({
dry: true
}),
new HtmlWebpackPlugin({
title: app,
template: `./apps/${app}/index.html`,
})
],
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/'
},
module: {
rules: [
{
test: /\.css$/,
use: [
'style-loader',
'css-loader'
]
},
{
test: /\.(png|svg|jpg|gif)$/,
use: [
'file-loader'
]
}
]
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zing-dev/learn-nodejs.git
git@gitee.com:zing-dev/learn-nodejs.git
zing-dev
learn-nodejs
learn-nodejs
master

搜索帮助