Skip to content

Commit

Permalink
Update webpack configs
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Mar 8, 2019
1 parent 235e510 commit 9455891
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

let fileName = 'pdf-annotate';
Expand All @@ -18,7 +19,8 @@ module.exports = {
entry: './index.js',
mode: 'production',
output: {
filename: 'dist/' + fileName + '.js',
filename: fileName + '.js',
path: path.join(__dirname, 'dist'),
library: 'PDFAnnotate',
libraryTarget: 'umd'
},
Expand Down
2 changes: 1 addition & 1 deletion webpack.sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
output: {
filename: '[name].js',
chunkFilename: '[id].chunk.js',
path: 'sandbox/__build__',
path: path.join(__dirname, 'sandbox', '__build__'),
publicPath: '/__build__/'
},

Expand Down
3 changes: 2 additions & 1 deletion webpack.web-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = {
entry: './web/index.js',
mode: 'production',
output: {
filename: path.resolve('web-dist/__build__/index.js'),
filename: 'index.js',
path: path.join(__dirname, 'web-dist', '__build__'),
library: 'PDFAnnotate',
libraryTarget: 'umd'
},
Expand Down
4 changes: 2 additions & 2 deletions webpack.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = {

output: {
filename: 'index.js',
path: path.resolve('web/__build__'),
publicPath: path.resolve('/__build__/')
path: path.join(__dirname, 'web', '__build__'),
publicPath: path.join(__dirname, '__build__')
},

module: {
Expand Down

0 comments on commit 9455891

Please sign in to comment.