1
1
mirror of https://github.com/c8r/x0.git synced 2024-07-14 16:50:34 +03:00

Adjust default basename

This commit is contained in:
Brent Jackson 2018-05-22 00:37:19 -04:00
parent e61b3b19de
commit 0cbed4f71c
3 changed files with 3 additions and 3 deletions

2
cli.js
View File

@ -92,7 +92,7 @@ const opts = Object.assign({
filename,
stats,
outDir: 'dist',
basename: '/',
basename: '',
scope: {},
pkg,
}, config, cli.flags)

View File

@ -180,7 +180,7 @@ module.exports = async (opts) => {
config.output = {
path: opts.outDir,
filename: 'bundle.js',
publicPath: opts.basename
publicPath: opts.basename + '/'
}
// push per route/page

View File

@ -5,7 +5,7 @@ const defaultTemplate = require('./template')
module.exports = opts => {
const template = opts.template || defaultTemplate
return context => {
const scripts = generateJSReferences(context.js, context.publicPath + '/')
const scripts = generateJSReferences(context.js, context.publicPath)
return minify(
template(Object.assign({}, context, {
scripts