UNPKG

web-utils-super

Version:

前端函数库

27 lines (22 loc) 515 B
const path = require('path') const pkg = require('../package.json') const rootPath = path.resolve(__dirname, '../') const config = { mode: 'production', entry: path.resolve(rootPath, 'src', 'index.js'), output: { filename: `${pkg.name}.min.js`, path: path.resolve(rootPath, 'min'), library: `${pkg.name}`, libraryTarget: 'umd' }, module: { rules: [ { test: /\.js$/, loader: 'babel-loader' } ] } } module.exports = config