mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +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: {},
|
||||
publicPath: '/_nuxt/',
|
||||
filenames: {
|
||||
css: 'vendor.[contenthash].css',
|
||||
manifest: 'manifest.[hash].js',
|
||||
vendor: 'vendor.[chunkhash].js',
|
||||
app: 'app.[chunkhash].js',
|
||||
chunk: '[name].[chunkhash].js'
|
||||
css: 'css/[name].[contenthash].css',
|
||||
manifest: 'js/manifest.[hash].js',
|
||||
vendor: 'js/vendor.[chunkhash].js',
|
||||
app: 'js/app.[chunkhash].js',
|
||||
chunk: 'js/[name].[chunkhash].js'
|
||||
},
|
||||
vendor: [],
|
||||
plugins: [],
|
||||
|
@ -54,7 +54,7 @@ test('/ (custom app.html)', async t => {
|
||||
|
||||
test('/ (custom build.publicPath)', async t => {
|
||||
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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user