diff --git a/package.json b/package.json index 473744a..d9931a1 100644 --- a/package.json +++ b/package.json @@ -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/" diff --git a/webpack.config.js b/webpack.config.js index 4c9b608..b3764a7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ 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'); @@ -8,7 +9,7 @@ const config = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), - filename: `${infos.name}.js`, + filename: `${name}.js`, library: "pdfjs", libraryTarget: "var" }, @@ -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) ]