mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
test: move scopeHoisting tests into basic fixture
This commit is contained in:
parent
786b25adb8
commit
423cee1f3d
@ -13,7 +13,7 @@ test.before('Init Nuxt.js', async t => {
|
|||||||
const rootDir = resolve(__dirname, 'fixtures/debug')
|
const rootDir = resolve(__dirname, 'fixtures/debug')
|
||||||
let config = require(resolve(rootDir, 'nuxt.config.js'))
|
let config = require(resolve(rootDir, 'nuxt.config.js'))
|
||||||
config.rootDir = rootDir
|
config.rootDir = rootDir
|
||||||
config.dev = true
|
config.dev = true // Needed for _open middleware
|
||||||
nuxt = new Nuxt(config)
|
nuxt = new Nuxt(config)
|
||||||
await new Builder(nuxt).build()
|
await new Builder(nuxt).build()
|
||||||
|
|
||||||
|
1
test/fixtures/basic/nuxt.config.js
vendored
1
test/fixtures/basic/nuxt.config.js
vendored
@ -20,6 +20,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
transition: false,
|
transition: false,
|
||||||
build: {
|
build: {
|
||||||
|
scopeHoisting: true,
|
||||||
postcss: [
|
postcss: [
|
||||||
require('postcss-cssnext')()
|
require('postcss-cssnext')()
|
||||||
]
|
]
|
||||||
|
3
test/fixtures/debug/nuxt.config.js
vendored
3
test/fixtures/debug/nuxt.config.js
vendored
@ -3,9 +3,6 @@ module.exports = {
|
|||||||
base: '/test/'
|
base: '/test/'
|
||||||
},
|
},
|
||||||
debug: true,
|
debug: true,
|
||||||
build: {
|
|
||||||
scopeHoisting: true
|
|
||||||
},
|
|
||||||
editor: {
|
editor: {
|
||||||
cmd: 'echo',
|
cmd: 'echo',
|
||||||
pattern: ''
|
pattern: ''
|
||||||
|
1
test/fixtures/with-config/nuxt.config.js
vendored
1
test/fixtures/with-config/nuxt.config.js
vendored
@ -42,7 +42,6 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
// extractCSS: true,
|
|
||||||
publicPath: '/orion/',
|
publicPath: '/orion/',
|
||||||
analyze: {
|
analyze: {
|
||||||
analyzerMode: 'disabled',
|
analyzerMode: 'disabled',
|
||||||
|
Loading…
Reference in New Issue
Block a user