Skip to content

Commit

Permalink
fix build due to package name change
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingeek committed Mar 31, 2020
1 parent b9ed41e commit a701674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flyingeek/scriptable-pdfjs",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "converts a pdf to text in ios app scriptable app.",
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
Expand Down
5 changes: 3 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
require('webpack');
const path = require('path');
const infos = require("./package.json");
const name = infos.name.replace(/^@flyingeek\//,"");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');

const config = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: `${infos.name}.js`,
filename: `${name}.js`,
library: "pdfjs",
libraryTarget: "var"
},
Expand All @@ -28,7 +29,7 @@ const config = {
template: path.join(__dirname, './src/index.html'),
inject: "body",
inlineSource: '.(js|css)$',
filename: `${infos.name}.html`,
filename: `${name}.html`,
}),
new HtmlWebpackInlineSourcePlugin(HtmlWebpackPlugin)
]
Expand Down

0 comments on commit a701674

Please sign in to comment.