1 Star 0 Fork 1

yzhu / jsnes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 701 Bytes
一键复制 编辑 原始数据 按行查看 历史
Benjamin Goldstein 提交于 2021-12-09 18:50 . Fix uglify for build
var path = require("path");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
module.exports = {
entry: {
jsnes: "./src/index.js",
"jsnes.min": "./src/index.js",
},
devtool: "source-map",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].js",
library: "jsnes",
libraryTarget: "umd",
umdNamedDefine: true,
},
module: {
rules: [
{
test: /\.js$/,
enforce: "pre",
exclude: /node_modules/,
use: [
{
loader: "eslint-loader",
},
],
},
],
},
plugins: [
new UglifyJsPlugin({
include: /\.min\.js$/,
sourceMap: true,
}),
],
};
JavaScript
1
https://gitee.com/891085309/jsnes.git
git@gitee.com:891085309/jsnes.git
891085309
jsnes
jsnes
master

搜索帮助