refactor: wepack

This commit is contained in:
xiaojunnuo
2021-01-04 00:45:04 +08:00
parent e1396bb107
commit c2420edb5a
3 changed files with 4 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
const path = require('path')
module.exports = {
target: 'node',
entry: './src/index.js',
output: {
filename: 'main.cjs',
path: path.resolve(__dirname, 'dist')
}
}