mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +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/',
|
||||
filenames: {
|
||||
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'
|
||||
manifest: 'manifest.[hash].js',
|
||||
vendor: 'vendor.[chunkhash].js',
|
||||
app: 'app.[chunkhash].js',
|
||||
chunk: '[name].[chunkhash].js'
|
||||
},
|
||||
vendor: [],
|
||||
plugins: [],
|
||||
|
@ -55,7 +55,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/js/vendor.'))
|
||||
t.true(html.includes('src="/test/orion/vendor.'))
|
||||
})
|
||||
|
||||
test('/ (custom postcss.config.js)', async t => {
|
||||
|
Loading…
Reference in New Issue
Block a user