1 Star 0 Fork 3

skymysky/cherryrest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 906 Bytes
一键复制 编辑 原始数据 按行查看 历史
汪冰 提交于 2018-12-17 09:27 . 添加filter、async异步测试
const path = require('path');
const webpack = require('webpack');
const CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = {
mode:'development',
entry: {
bundle: path.resolve(__dirname, './src/Cherry.js')
},
output: {
chunkFilename: "[name].js",
filename: "index.js",
libraryTarget: 'umd',
library: 'CherryRest',
path: path.resolve(__dirname, './dist'),
},
module: {
rules: [
{
test: /\.js|jsx$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
}
}
]
},
devtool:'source-map',
plugins: [
new CleanWebpackPlugin(['dist',
'build'], {
root:__dirname,
verbose: true,
dry: false
})
]
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/skymysky/cherryrest.git
git@gitee.com:skymysky/cherryrest.git
skymysky
cherryrest
cherryrest
master

搜索帮助