2 Star 8 Fork 4

韩子卢/Img4Transparent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 768 Bytes
一键复制 编辑 原始数据 按行查看 历史
韩子卢 提交于 2019-12-30 16:34 . 初始化
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const path = require('path');
const pathsToClean = [
'build',
];
module.exports = {
entry: ['babel-polyfill', './src/app.js'],
output: {
filename: '[name].[hash].js',
path: path.resolve(__dirname, 'build'),
filename: '[name].[chunkhash].js',
},
plugins: [
new HtmlWebpackPlugin({
template: './template/index.html',
filename: 'demo.html',
minify: {
collapseWhitespace: true,
}
}),
new CleanWebpackPlugin(pathsToClean)
],
devtool: 'source-map',
devServer: {
port: 8989,
open: true,
compress: true,
index: 'demo.html',
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vvjiang/Img4Transparent.git
git@gitee.com:vvjiang/Img4Transparent.git
vvjiang
Img4Transparent
Img4Transparent
master

搜索帮助