Skip to content

Commit e9d0140

Browse files
committed
Requiring root package.json instead of this plugin's for version info
Fixes #2
1 parent 9e2c357 commit e9d0140

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin')
44
const ChromeExtensionReloader = require('webpack-chrome-extension-reloader')
55
const WebpackShellPlugin = require('webpack-shell-plugin-next')
66
const HtmlWebpackPlugin = require('html-webpack-plugin')
7-
const { name, version } = require('./package.json')
7+
const { name, version } = require(path.join(process.cwd(), 'package.json'))
88

99
module.exports = (api) => {
1010
api.configureWebpack(webpackConfig => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-browser-extension",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "Browser extension development plugin for vue-cli 3.0",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)