mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
improve dist chunks structure
Moving all js assets into _nuxt/js and css assets into _nuxt/css
This commit is contained in:
parent
bfe1f2c4d3
commit
d243ad13e1
@ -154,11 +154,11 @@ Options.defaults = {
|
|||||||
uglify: {},
|
uglify: {},
|
||||||
publicPath: '/_nuxt/',
|
publicPath: '/_nuxt/',
|
||||||
filenames: {
|
filenames: {
|
||||||
css: 'vendor.[contenthash].css',
|
css: 'css/[name].[contenthash].css',
|
||||||
manifest: 'manifest.[hash].js',
|
manifest: 'js/manifest.[hash].js',
|
||||||
vendor: 'vendor.[chunkhash].js',
|
vendor: 'js/vendor.[chunkhash].js',
|
||||||
app: 'app.[chunkhash].js',
|
app: 'js/app.[chunkhash].js',
|
||||||
chunk: '[name].[chunkhash].js'
|
chunk: 'js/[name].[chunkhash].js'
|
||||||
},
|
},
|
||||||
vendor: [],
|
vendor: [],
|
||||||
plugins: [],
|
plugins: [],
|
||||||
|
@ -54,7 +54,7 @@ test('/ (custom app.html)', async t => {
|
|||||||
|
|
||||||
test('/ (custom build.publicPath)', async t => {
|
test('/ (custom build.publicPath)', async t => {
|
||||||
const { html } = await nuxt.renderRoute('/')
|
const { html } = await nuxt.renderRoute('/')
|
||||||
t.true(html.includes('src="/test/orion/vendor.'))
|
t.true(html.includes('src="/test/orion/js/vendor.'))
|
||||||
})
|
})
|
||||||
|
|
||||||
test('/ (custom postcss.config.js)', async t => {
|
test('/ (custom postcss.config.js)', async t => {
|
||||||
|
Loading…
Reference in New Issue
Block a user