tweak webpack

This commit is contained in:
daniel-j 2020-08-10 10:53:32 +02:00
parent f50529f410
commit 1532ebbaaa
2 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View file

@ -10,3 +10,4 @@ dist/
build/
bin/
*.epub
*.node

View file

@ -11,8 +11,8 @@ const bundleExtensionConfig = {
},
output: {
path: path.join(__dirname, '/'),
filename: './extension/build/[name].js'
path: path.join(__dirname, '/extension/build'),
filename: './[name].js'
},
module: {
@ -144,8 +144,8 @@ const bundleNpmBinaryConfig = {
entry: './src/cli',
output: {
path: path.join(__dirname, '/'),
filename: './build/fimfic2epub.js'
path: path.join(__dirname, '/build'),
filename: './fimfic2epub.js'
},
target: 'node',
@ -203,8 +203,8 @@ const bundleStaticNpmModuleConfig = {
entry: './src/cli',
output: {
path: path.join(__dirname, '/'),
filename: './build/fimfic2epub.js'
path: path.join(__dirname, '/build'),
filename: './fimfic2epub.js'
},
target: 'node',