Skip to content

Commit a78fd81

Browse files
authored
Merge pull request Kocal#17 from Kocal/develop
Version 1.0.0
2 parents f224740 + febc475 commit a78fd81

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ $ npm run build
3030

3131
Build the extension into `dist` folder for **production**.
3232

33-
### `npm run build:env`
33+
### `npm run build:dev`
3434

3535
Build the extension into `dist` folder for **development**.
3636

3737
### `npm run watch`
3838

3939
Watch for modifications then run `npm run build`.
4040

41+
### `npm run watch:dev`
42+
43+
Watch for modifications then run `npm run build:web`.
44+
4145
### `npm run build-zip`
4246

4347
Build a zip file following this format `<name>-v<version>.zip`, by reading `name` and `version` from `manifest.json` file.

template/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"author": "{{ author }}",
66
"scripts": {
77
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js --progress --hide-modules",
8-
"build:env": "cross-env NODE_ENV=development webpack --config webpack.config.js --progress --hide-modules",
8+
"build:dev": "cross-env NODE_ENV=development webpack --config webpack.config.js --progress --hide-modules",
99
"build-zip": "node scripts/build-zip.js",
10-
"watch": "npm run build -- --watch"
10+
"watch": "npm run build -- --watch",
11+
"watch:dev": "npm run build:dev -- --watch"
1112
},
1213
"dependencies": {
1314
{{#axios}}"axios": "^0.16.2",{{/axios}}

template/src/popup/popup.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Title</title>
6+
<link rel="stylesheet" href="popup.css">
67
</head>
78
<body>
89
<div id="app">
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import PageIndex from './pages/Index.vue';
2+
13
export default [
24
{
35
path: '/',
4-
component: require('./pages/Index.vue')
6+
component: PageIndex
57
},
68
];

0 commit comments

Comments
 (0)