-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
19 lines (16 loc) · 937 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# https://docs.netlify.com/configure-builds/file-based-configuration/
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = "."
# Default build command.
# Locally I'm serving require.js directly from node_modules/, but netlify omits node_modules from the final site (understandably, most of it is just build tools).
# So copy what we need explicitly.
# https://stackoverflow.com/questions/54527465/no-node-modules-from-netlify-deploy
command = "npm install && npm run build-for-netlify"
# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set.
publish = "dist"