This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## References: | |
# https://git.io/Jf3l9 | |
# https://circleci.com/docs/2.0/yarn/ | |
# https://circleci.com/docs/2.0/caching/#yarn-node | |
# https://circleci.com/orbs/registry/orb/circleci/node | |
# https://discuss.circleci.com/t/circleci-2-1-config-overview/26057 | |
version: 2.1 | |
orbs: | |
node: circleci/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'landing-page-1': { | |
entry: './src/pages/landing-page-1/main.js', | |
template: 'public/index.html', | |
filename: 'landing-page-1.html', | |
title: 'Landing Page 1', | |
chunks: [ 'chunk-vendors', 'chunk-common', 'landing-page-1' ] | |
}, | |
'landing-page-2': { | |
entry: './src/pages/landing-page-2/main.js', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import hashSum from 'hash-sum' // for key gen | |
import clone from 'fast-copy' // for cutting the reference | |
/** | |
* Nuxt.js: request with client cache (imitate Google search association results) | |
* @param {Object} req | |
* @param {string} [req.method='get'] | |
* @param {string} req.url | |
* @param {Object} [req.data] |