mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +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
|
minify: boolean
|
||||||
rollupConfig?: any
|
rollupConfig?: any
|
||||||
fullStatic: boolean,
|
fullStatic: boolean,
|
||||||
|
generateIgnore: string[]
|
||||||
staticAssets: {
|
staticAssets: {
|
||||||
base: string
|
base: string
|
||||||
versionBase: string
|
versionBase: string
|
||||||
|
@ -33,6 +33,7 @@ export default <Module> function slsModule () {
|
|||||||
nuxt.hook('generate:cache:ignore', (ignore) => {
|
nuxt.hook('generate:cache:ignore', (ignore) => {
|
||||||
ignore.push(options.slsDir)
|
ignore.push(options.slsDir)
|
||||||
ignore.push(options.targetDir)
|
ignore.push(options.targetDir)
|
||||||
|
ignore.push(...options.generateIgnore)
|
||||||
})
|
})
|
||||||
|
|
||||||
nuxt.hook('generate:page', (page) => {
|
nuxt.hook('generate:page', (page) => {
|
||||||
|
@ -3,5 +3,8 @@ import { SLSTarget } from '../config'
|
|||||||
import { lambda } from './lambda'
|
import { lambda } from './lambda'
|
||||||
|
|
||||||
export const netlify: SLSTarget = extendTarget(lambda, {
|
export const netlify: SLSTarget = extendTarget(lambda, {
|
||||||
|
generateIgnore: [
|
||||||
|
'netlify.toml',
|
||||||
|
'_redirects'
|
||||||
|
]
|
||||||
})
|
})
|
||||||
|
@ -3,5 +3,8 @@ import { SLSTarget } from '../config'
|
|||||||
import { node } from './node'
|
import { node } from './node'
|
||||||
|
|
||||||
export const vercel: SLSTarget = extendTarget(node, {
|
export const vercel: SLSTarget = extendTarget(node, {
|
||||||
targetDir: '{{ rootDir }}/api'
|
targetDir: '{{ rootDir }}/api',
|
||||||
|
generateIgnore: [
|
||||||
|
'vercel.json'
|
||||||
|
]
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user