Fix support for Edge (Use Babel)
This commit is contained in:
parent
318338c939
commit
d0a3632345
3 changed files with 63 additions and 15 deletions
8
.github/workflows/deployment.yml
vendored
8
.github/workflows/deployment.yml
vendored
|
@ -20,14 +20,8 @@ jobs:
|
||||||
- name: "Install NPM dependencies"
|
- name: "Install NPM dependencies"
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: "Install CLI tools"
|
|
||||||
run: "npm install --global @gridsome/cli purgecss"
|
|
||||||
|
|
||||||
- name: "Build"
|
- name: "Build"
|
||||||
run: npm run build
|
run: npm run deploy
|
||||||
|
|
||||||
- name: "PurgeCSS pass"
|
|
||||||
run: purgecss --config purgecss.config.js --output dist/assets/css/
|
|
||||||
|
|
||||||
- name: "Deploy"
|
- name: "Deploy"
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|
45
babel.config.json
Normal file
45
babel.config.json
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
"comments": false,
|
||||||
|
"presets": [
|
||||||
|
["minify", {
|
||||||
|
"booleans": false,
|
||||||
|
"consecutiveAdds": false,
|
||||||
|
"deadcode": false,
|
||||||
|
"flipComparisons": false,
|
||||||
|
"guards": false,
|
||||||
|
"infinity": false,
|
||||||
|
"memberExpressions": false,
|
||||||
|
"mergeVars": false,
|
||||||
|
"numericLiterals": false,
|
||||||
|
"regexpConstructors": false,
|
||||||
|
"removeConsole": false,
|
||||||
|
"removeDebugger": false,
|
||||||
|
"removeUndefined": false,
|
||||||
|
"builtIns": false,
|
||||||
|
"evaluate": false,
|
||||||
|
"replace": false,
|
||||||
|
"simplify": false,
|
||||||
|
"simplifyComparisons": false,
|
||||||
|
"undefinedToVoid": false,
|
||||||
|
"typeConstructors": false,
|
||||||
|
"mangle": false,
|
||||||
|
"propertyLiterals": false
|
||||||
|
}],
|
||||||
|
[
|
||||||
|
"@babel/env",
|
||||||
|
{
|
||||||
|
"targets": {
|
||||||
|
"edge": "17",
|
||||||
|
"firefox": "60",
|
||||||
|
"chrome": "67",
|
||||||
|
"safari": "11.1",
|
||||||
|
"ie": "11"
|
||||||
|
},
|
||||||
|
"modules": false,
|
||||||
|
"useBuiltIns": "entry",
|
||||||
|
"corejs": "3",
|
||||||
|
"forceAllTransforms": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
25
package.json
25
package.json
|
@ -4,23 +4,32 @@
|
||||||
"description": "Ryujinx Website",
|
"description": "Ryujinx Website",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gridsome build",
|
"build": "npx gridsome build",
|
||||||
"develop": "gridsome develop",
|
"develop": "npx gridsome develop",
|
||||||
"explore": "gridsome explore"
|
"explore": "npx gridsome explore",
|
||||||
|
"deploy": "npm run build && npx purgecss --config purgecss.config.js --output dist/assets/css/ && npx babel -d dist dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gridsome": "^0.7.0",
|
"@babel/polyfill": "^7.8.7",
|
||||||
"vuetify": "^2.0.0"
|
"core-js": "^3.6.4",
|
||||||
|
"gridsome": "^0.7.13",
|
||||||
|
"vuetify": "^2.2.18"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/cli": "^7.8.4",
|
||||||
|
"@babel/core": "^7.9.0",
|
||||||
|
"@babel/preset-env": "^7.9.0",
|
||||||
|
"@gridsome/cli": "^0.3.1",
|
||||||
"@gridsome/plugin-sitemap": "^0.2.3",
|
"@gridsome/plugin-sitemap": "^0.2.3",
|
||||||
|
"babel-preset-minify": "^0.5.1",
|
||||||
"deepmerge": "^4.2.2",
|
"deepmerge": "^4.2.2",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^6.8.0",
|
||||||
"eslint-plugin-vue": "^6.1.2",
|
"eslint-plugin-vue": "^6.2.2",
|
||||||
"eslint-plugin-vuetify": "^1.0.0-beta.5",
|
"eslint-plugin-vuetify": "^1.0.0-beta.6",
|
||||||
"fibers": "^4.0.2",
|
"fibers": "^4.0.2",
|
||||||
"gridsome-plugin-robots-txt": "^1.0.2",
|
"gridsome-plugin-robots-txt": "^1.0.2",
|
||||||
"sass": "^1.25.0",
|
"purgecss": "^2.1.0",
|
||||||
|
"sass": "^1.26.3",
|
||||||
"sass-loader": "7.3.1",
|
"sass-loader": "7.3.1",
|
||||||
"vuetify-loader": "^1.4.3",
|
"vuetify-loader": "^1.4.3",
|
||||||
"webpack-node-externals": "^1.7.2"
|
"webpack-node-externals": "^1.7.2"
|
||||||
|
|
Loading…
Reference in a new issue