Fix building issues
This commit is contained in:
parent
4d42d28175
commit
aaab3bb8cb
4 changed files with 31 additions and 22 deletions
12
.github/workflows/deployment.yml
vendored
12
.github/workflows/deployment.yml
vendored
|
@ -15,13 +15,19 @@ jobs:
|
||||||
- name: "Setup NodeJS"
|
- name: "Setup NodeJS"
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '12.16.3'
|
node-version: '14.x'
|
||||||
|
|
||||||
- name: "Install NPM dependencies"
|
- name: "Install NPM dependencies"
|
||||||
run: npm install
|
run: |
|
||||||
|
# Workaround (see https://github.com/gridsome/gridsome/issues/1385)
|
||||||
|
export VUE_CLI_BABEL_TRANSPILE_MODULES=true
|
||||||
|
npm install
|
||||||
|
|
||||||
- name: "Build"
|
- name: "Build"
|
||||||
run: npm run deploy
|
run: |
|
||||||
|
# Workaround (see https://github.com/gridsome/gridsome/issues/1385)
|
||||||
|
export VUE_CLI_BABEL_TRANSPILE_MODULES=true
|
||||||
|
npm run deploy
|
||||||
|
|
||||||
- name: "Deploy"
|
- name: "Deploy"
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
## 2. Build Setup
|
## 2. Build Setup
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
|
# Workaround (see https://github.com/gridsome/gridsome/issues/1385)
|
||||||
|
export VUE_CLI_BABEL_TRANSPILE_MODULES=true
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ module.exports = function (api) {
|
||||||
if (isServer) {
|
if (isServer) {
|
||||||
config.externals([
|
config.externals([
|
||||||
nodeExternals({
|
nodeExternals({
|
||||||
whitelist: [/^vuetify/]
|
allowlist: [/^vuetify/]
|
||||||
})
|
})
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
36
package.json
36
package.json
|
@ -10,29 +10,29 @@
|
||||||
"deploy": "npm run build && npx purgecss --config purgecss.config.js --output dist/assets/css/ && npx babel -d dist dist"
|
"deploy": "npm run build && npx purgecss --config purgecss.config.js --output dist/assets/css/ && npx babel -d dist dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/polyfill": "^7.8.7",
|
"@babel/polyfill": "^7.12.1",
|
||||||
"@gridsome/plugin-google-analytics": "^0.1.0",
|
"@gridsome/plugin-google-analytics": "^0.1.2",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.8.3",
|
||||||
"gridsome": "^0.7.17",
|
"gridsome": "^0.7.23",
|
||||||
"vuetify": "^2.3.0"
|
"vuetify": "2.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.8.4",
|
"@babel/cli": "^7.12.10",
|
||||||
"@babel/core": "^7.9.0",
|
"@babel/core": "^7.12.10",
|
||||||
"@babel/preset-env": "^7.9.0",
|
"@babel/preset-env": "^7.12.11",
|
||||||
"@gridsome/cli": "^0.3.3",
|
"@gridsome/cli": "^0.3.4",
|
||||||
"@gridsome/plugin-sitemap": "^0.2.3",
|
"@gridsome/plugin-sitemap": "^0.4.0",
|
||||||
"babel-preset-minify": "^0.5.1",
|
"babel-preset-minify": "^0.5.1",
|
||||||
"deepmerge": "^4.2.2",
|
"deepmerge": "^4.2.2",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^7.18.0",
|
||||||
"eslint-plugin-vue": "^6.2.2",
|
"eslint-plugin-vue": "^7.5.0",
|
||||||
"eslint-plugin-vuetify": "^1.0.0-beta.6",
|
"eslint-plugin-vuetify": "^1.0.0-beta.7",
|
||||||
"fibers": "^4.0.2",
|
"fibers": "^5.0.0",
|
||||||
"gridsome-plugin-robots-txt": "^1.0.2",
|
"gridsome-plugin-robots-txt": "^1.0.2",
|
||||||
"purgecss": "^2.1.0",
|
"purgecss": "^4.0.0",
|
||||||
"sass": "^1.26.3",
|
"sass": "^1.32.5",
|
||||||
"sass-loader": "7.3.1",
|
"sass-loader": "7.3.1",
|
||||||
"vuetify-loader": "^1.4.3",
|
"vuetify-loader": "^1.6.0",
|
||||||
"webpack-node-externals": "^1.7.2"
|
"webpack-node-externals": "^2.5.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue