Skip to content

Commit 5dc6065

Browse files
committed
remove options.jade, move vue to js/lib
1 parent acbe6ff commit 5dc6065

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

bin/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const envconfigs = {
1212
views: path.resolve(__dirname, '../views')
1313
},
1414
externals: {
15+
vue: 'Vue'
1516
},
1617
alias: {
1718
'@': path.resolve(__dirname, '../src'),

bin/utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ exports.getCopyPlugins = function (env, assetsPublicPath) {
270270
fs.writeFileSync(path.join(config[env].assetsRoot, 'manifest-img.json'), JSON.stringify(manifsetImg, null, 2))
271271
return content
272272
}
273+
}, {
274+
from: path.join(config.paths.src, 'js/lib'),
275+
to: path.join(config[env].assetsRoot, 'js/lib')
273276
}, {
274277
from: path.join(config.paths.src, 'manifest.json'),
275278
to: path.join(config[env].assetsRoot, 'manifest.json'),

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
"lodash": "4.17.4"
8888
},
8989
"dependencies": {
90-
"element-ui": "2.4.5",
91-
"vue": "2.5.17"
90+
"element-ui": "2.4.5"
9291
}
9392
}

src/html/devtool.jade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ doctype html
22
html
33
head
44
meta(charset="utf-8")
5+
script(src="../js/lib/vue.2.5.17.min.js")
56
body
67
#root
7-
script(src="../js/cc-devtool.js")
8+
script(src="../js/cc-devtool.js")

src/html/options.jade

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/js/lib/vue.2.5.17.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"js/cc-devtool-backgroundScript.js"
3131
]
3232
},
33-
"options_page": "html/options.html",
3433
"web_accessible_resources": [
3534
"*/*",
3635
"*"

0 commit comments

Comments
 (0)