Fix support for Edge (Use Babel)

This commit is contained in:
Thog 2020-03-23 16:55:46 +01:00
parent 318338c939
commit d0a3632345
3 changed files with 63 additions and 15 deletions

View file

@ -20,14 +20,8 @@ jobs:
- name: "Install NPM dependencies"
run: npm install
- name: "Install CLI tools"
run: "npm install --global @gridsome/cli purgecss"
- name: "Build"
run: npm run build
- name: "PurgeCSS pass"
run: purgecss --config purgecss.config.js --output dist/assets/css/
run: npm run deploy
- name: "Deploy"
uses: peaceiris/actions-gh-pages@v3

45
babel.config.json Normal file
View 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
}
]
]
}

View file

@ -4,23 +4,32 @@
"description": "Ryujinx Website",
"private": true,
"scripts": {
"build": "gridsome build",
"develop": "gridsome develop",
"explore": "gridsome explore"
"build": "npx gridsome build",
"develop": "npx gridsome develop",
"explore": "npx gridsome explore",
"deploy": "npm run build && npx purgecss --config purgecss.config.js --output dist/assets/css/ && npx babel -d dist dist"
},
"dependencies": {
"gridsome": "^0.7.0",
"vuetify": "^2.0.0"
"@babel/polyfill": "^7.8.7",
"core-js": "^3.6.4",
"gridsome": "^0.7.13",
"vuetify": "^2.2.18"
},
"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",
"babel-preset-minify": "^0.5.1",
"deepmerge": "^4.2.2",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^6.1.2",
"eslint-plugin-vuetify": "^1.0.0-beta.5",
"eslint-plugin-vue": "^6.2.2",
"eslint-plugin-vuetify": "^1.0.0-beta.6",
"fibers": "^4.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",
"vuetify-loader": "^1.4.3",
"webpack-node-externals": "^1.7.2"