add SAPPER_BASE and SAPPER_APP environment variables

This commit is contained in:
Rich Harris
2018-03-11 13:29:39 -04:00
parent 819ec0b776
commit be63ea7c96
7 changed files with 22 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import { dest, dev } from './config';
import { locations, dev } from './config';
export default {
dev: dev(),
@@ -12,7 +12,7 @@ export default {
output: () => {
return {
path: `${dest()}/client`,
path: `${locations.dest()}/client`,
filename: '[hash]/[name].js',
chunkFilename: '[hash]/[name].[id].js',
publicPath: '/client/'
@@ -29,7 +29,7 @@ export default {
output: () => {
return {
path: dest(),
path: locations.dest(),
filename: '[name].js',
chunkFilename: '[hash]/[name].[id].js',
libraryTarget: 'commonjs2'
@@ -46,7 +46,7 @@ export default {
output: () => {
return {
path: dest(),
path: locations.dest(),
filename: '[name].js',
chunkFilename: '[name].[id].[hash].js'
}