Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

build error fixes #128

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ $ git clone https://github.com/Colm3na/polkastats-v2.git
$ cd polkastats-v2

# Install dependencies
$ npm install
$ yarn install

# Serve with hot reload at localhost:3000
$ npm run dev
$ yarn run dev

# Build for production
$ npm run build
$ yarn run build

# generate static project
$ npm run generate
$ yarn run generate
```

## Build backend
Expand Down
14 changes: 14 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ export default {
** Build configuration
*/
build: {
babel: {
presets() {
return [
[
require.resolve("@nuxt/babel-preset-app"),
// require.resolve('@nuxt/babel-preset-app-edge'), // For nuxt-edge users
{
buildTarget: "client",
corejs: { version: 3 }
}
]
]
}
},
/*
** You can extend webpack config here
*/
Expand Down
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"prettier": "prettier --write '**/*.{vue,js,css,html}'",
"start": "nuxt start"
},
"engines": {
"node": "12.3.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Colm3na/polkastats-v2.git"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.27",
"@fortawesome/free-brands-svg-icons": "^5.12.1",
Expand All @@ -40,7 +47,9 @@
"vue-apexcharts": "^1.4.0"
},
"devDependencies": {
"@babel/runtime-corejs3": "^7.10.2",
"babel-eslint": "^10.1.0",
"core-js": "^3.6.5",
"cypress": "^4.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
Expand Down