Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ $ npm run build

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

### `npm run build:env`
### `npm run build:dev`

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

### `npm run watch`

Watch for modifications then run `npm run build`.

### `npm run watch:dev`

Watch for modifications then run `npm run build:web`.

### `npm run build-zip`

Build a zip file following this format `<name>-v<version>.zip`, by reading `name` and `version` from `manifest.json` file.
Expand Down
5 changes: 3 additions & 2 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"author": "{{ author }}",
"scripts": {
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js --progress --hide-modules",
"build:env": "cross-env NODE_ENV=development webpack --config webpack.config.js --progress --hide-modules",
"build:dev": "cross-env NODE_ENV=development webpack --config webpack.config.js --progress --hide-modules",
"build-zip": "node scripts/build-zip.js",
"watch": "npm run build -- --watch"
"watch": "npm run build -- --watch",
"watch:dev": "npm run build:dev -- --watch"
},
"dependencies": {
{{#axios}}"axios": "^0.16.2",{{/axios}}
Expand Down
1 change: 1 addition & 0 deletions template/src/popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div id="app">
Expand Down
4 changes: 3 additions & 1 deletion template/src/popup/router/routes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import PageIndex from './pages/Index.vue';

export default [
{
path: '/',
component: require('./pages/Index.vue')
component: PageIndex
},
];