1
1
mirror of https://github.com/c8r/x0.git synced 2024-08-17 09:20:52 +03:00

Debug tests

This commit is contained in:
Brent Jackson 2018-05-22 17:00:49 -04:00
parent f0273ed542
commit 03d0998dff
2 changed files with 8 additions and 6 deletions

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

@ -3,11 +3,13 @@ import path from 'path'
import test from 'ava'
import build from '../lib/build'
const input = path.join(__dirname, 'components')
const output = path.join(__dirname, './output')
const htmlFile = path.join(__dirname, './output/index.html')
const propsFile = path.join(__dirname, './output/props/index.html')
const bundleFile = path.join(__dirname, './output/bundle.js')
const input = path.resolve('test/components')
const output = path.resolve('test/output')
const htmlFile = path.resolve('test/output/index.html')
const propsFile = path.resolve('test/output/props/index.html')
const bundleFile = path.resolve('test/output/bundle.js')
console.log('DEBUG', input)
const options = {
input,