vue-cli-plugin-platformsh
Version:
vue-cli plugin to add Platform.sh configuration files to a Vue.js project
43 lines (35 loc) • 883 B
YAML
name: ui
# The toolstack used to build the application.
type: nodejs:10
build:
flavor: none
# The configuration of app when it is exposed to the web.
web:
locations:
"/":
root: "build_platform"
index:
- "index.html"
expires: 300s
scripts: true
allow: false
rules:
\.(css|js|gif|jpe?g|png|ttf|eot|woff2?|otf|html|ico|svg?)$:
allow: true
^/robots\.txt$:
allow: true
disk: 512
mounts:
'/build_platform': 'shared:files/build_platform'
'/.tmp_platformsh': 'shared:files/tmp_platformsh'
dependencies:
nodejs:
yarn: "*"
# The hooks that will be performed when the package is deployed.
hooks:
build: |
set -e
yarn install
npm run build
deploy: |
npm run buildenvvar