Use CDN url for publicPath

This commit is contained in:
Sébastien Chopin 2017-03-24 18:46:18 +01:00
parent 184bd01b2b
commit 05c6dd958c
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ module.exports = {
string: 'Nuxt.js' string: 'Nuxt.js'
}, },
build: { build: {
publicPath: '/orion/', publicPath: 'https://cdn.nuxtjs.org',
analyze: { analyze: {
analyzerMode: 'disabled', analyzerMode: 'disabled',
generateStatsFile: true generateStatsFile: true

View File

@ -31,7 +31,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.bundle')) t.true(html.includes('src="https://cdn.nuxtjs.org/vendor.bundle'))
}) })
test('/test/ (router base)', async t => { test('/test/ (router base)', async t => {