Skip to content

Commit bbb7ea8

Browse files
committed
Hmm...
1 parent f1a0e93 commit bbb7ea8

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

nuxt.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports = {
9090
** Build configuration
9191
*/
9292
build: {
93-
vendor: ['vue-lazyload', 'chroma-js'],
93+
vendor: ['vue-lazyload'],
9494
plugins: [
9595
new BundleAnalyzerPlugin({
9696
analyzerMode: 'static',
@@ -115,6 +115,10 @@ module.exports = {
115115
// )
116116
// babelLoader.exclude = /node_modules\/(?!eagle.js)/
117117

118+
// config.externals = {
119+
// 'highlight.js': 'HighlightJS',
120+
// }
121+
118122
if (isDev && isClient) {
119123
config.module.rules.push({
120124
enforce: 'pre',

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@
77
"scripts": {
88
"dev": "cross-env HOST=0.0.0.0 PORT=3333 nuxt",
99
"build": "nuxt build",
10+
"analyse": "nuxt build --analyze",
1011
"start": "nuxt start",
1112
"generate": "nuxt generate",
1213
"deploy": "push-dir --dir=dist --branch=master --cleanup",
1314
"live": "npm run generate && npm run deploy",
1415
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
1516
"lintfix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
1617
"check": "prettier-eslint-check **/*.vue",
17-
"eslint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check",
18+
"eslint-check":
19+
"eslint --print-config .eslintrc.js | eslint-config-prettier-check",
1820
"precommit": "npm run eslint-check && npm run lint"
1921
},
20-
"browserslist": [
21-
"> 5%",
22-
"last 1 versions"
23-
],
22+
"browserslist": ["> 5%", "last 1 versions"],
2423
"dependencies": {
2524
"@nuxtjs/dotenv": "^1.1.1",
2625
"eagle.js": "^0.2.1-beta",

0 commit comments

Comments
 (0)