mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
revert: don't prepend js/ to chunk file names
It makes some problems with source mappings
This commit is contained in:
parent
4ea963a1c9
commit
87ac7d0cb4
@ -164,10 +164,10 @@ Options.defaults = {
|
|||||||
publicPath: '/_nuxt/',
|
publicPath: '/_nuxt/',
|
||||||
filenames: {
|
filenames: {
|
||||||
css: 'css/[name].[contenthash].css',
|
css: 'css/[name].[contenthash].css',
|
||||||
manifest: 'js/manifest.[hash].js',
|
manifest: 'manifest.[hash].js',
|
||||||
vendor: 'js/vendor.[chunkhash].js',
|
vendor: 'vendor.[chunkhash].js',
|
||||||
app: 'js/app.[chunkhash].js',
|
app: 'app.[chunkhash].js',
|
||||||
chunk: 'js/[name].[chunkhash].js'
|
chunk: '[name].[chunkhash].js'
|
||||||
},
|
},
|
||||||
vendor: [],
|
vendor: [],
|
||||||
plugins: [],
|
plugins: [],
|
||||||
|
@ -55,7 +55,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/js/vendor.'))
|
t.true(html.includes('src="/test/orion/vendor.'))
|
||||||
})
|
})
|
||||||
|
|
||||||
test('/ (custom postcss.config.js)', async t => {
|
test('/ (custom postcss.config.js)', async t => {
|
||||||
|
Loading…
Reference in New Issue
Block a user