revert: don't prepend js/ to chunk file names

It makes some problems with source mappings
This commit is contained in:
Pooya Parsa 2018-01-05 02:57:13 +03:30
parent 4ea963a1c9
commit 87ac7d0cb4
2 changed files with 5 additions and 5 deletions

View File

@ -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: [],

View File

@ -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 => {