mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
add default files to ignore for smart rebuild
This commit is contained in:
parent
b86eb3d741
commit
5647d2dad0
@ -27,6 +27,7 @@ export interface SLSOptions {
|
||||
minify: boolean
|
||||
rollupConfig?: any
|
||||
fullStatic: boolean,
|
||||
generateIgnore: string[]
|
||||
staticAssets: {
|
||||
base: string
|
||||
versionBase: string
|
||||
|
@ -33,6 +33,7 @@ export default <Module> function slsModule () {
|
||||
nuxt.hook('generate:cache:ignore', (ignore) => {
|
||||
ignore.push(options.slsDir)
|
||||
ignore.push(options.targetDir)
|
||||
ignore.push(...options.generateIgnore)
|
||||
})
|
||||
|
||||
nuxt.hook('generate:page', (page) => {
|
||||
|
@ -3,5 +3,8 @@ import { SLSTarget } from '../config'
|
||||
import { lambda } from './lambda'
|
||||
|
||||
export const netlify: SLSTarget = extendTarget(lambda, {
|
||||
|
||||
generateIgnore: [
|
||||
'netlify.toml',
|
||||
'_redirects'
|
||||
]
|
||||
})
|
||||
|
@ -3,5 +3,8 @@ import { SLSTarget } from '../config'
|
||||
import { node } from './node'
|
||||
|
||||
export const vercel: SLSTarget = extendTarget(node, {
|
||||
targetDir: '{{ rootDir }}/api'
|
||||
targetDir: '{{ rootDir }}/api',
|
||||
generateIgnore: [
|
||||
'vercel.json'
|
||||
]
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user