UNPKG

simple-utils-js

Version:

前端,前端开发,前端框架,web前端,前端面试题,技术文档,学习,面试,JavaScript,js,ES6,TypeScript,vue,python,css3,html5,Node,git,github,markdown

22 lines (20 loc) 515 B
// const webpack = require('webpack') // const rootPath = path.resolve(__dirname) const path = require('path') const config = { mode: 'production', entry: path.resolve(__dirname,'src', 'index.js'), output: { filename: 'simple-utils.min.js', path: path.resolve(__dirname, "libs"), library: 'simple-utils', libraryTarget: "umd" }, module: { rules: [{ test: /\.js$/, loader: "babel-loader" }] } } module.exports = config