From b5ebfd4c964840743455ac7241740a4fa1bfaa74 Mon Sep 17 00:00:00 2001 From: Lewis Peel Date: Mon, 2 Nov 2020 13:21:34 +0000 Subject: [PATCH] apply convention when using LNG_BUILD_FOLDER --- src/configs/rollup.es5.config.js | 3 ++- src/configs/rollup.es6.config.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/configs/rollup.es5.config.js b/src/configs/rollup.es5.config.js index 24f320b6..fd996c93 100644 --- a/src/configs/rollup.es5.config.js +++ b/src/configs/rollup.es5.config.js @@ -18,6 +18,7 @@ */ const path = require('path') +const process = require('process') const babel = require('@rollup/plugin-babel').babel const resolve = require('@rollup/plugin-node-resolve').nodeResolve const commonjs = require('@rollup/plugin-commonjs') @@ -40,7 +41,7 @@ module.exports = { json(), url({ limit: 0, - destDir: (process.env.LNG_BUILD_FOLDER || 'build') + '/static', + destDir: path.join(process.cwd(), process.env.LNG_BUILD_FOLDER || 'build') + '/static', publicPath: 'static/', }), inject({ diff --git a/src/configs/rollup.es6.config.js b/src/configs/rollup.es6.config.js index e7744b0f..659cb8dd 100644 --- a/src/configs/rollup.es6.config.js +++ b/src/configs/rollup.es6.config.js @@ -18,6 +18,7 @@ */ const path = require('path') +const process = require('process') const resolve = require('@rollup/plugin-node-resolve').nodeResolve const commonjs = require('@rollup/plugin-commonjs') const alias = require('@rollup/plugin-alias') @@ -36,7 +37,7 @@ module.exports = { json(), url({ limit: 0, - destDir: (process.env.LNG_BUILD_FOLDER || 'build') + '/static', + destDir: path.join(process.cwd(), process.env.LNG_BUILD_FOLDER || 'build') + '/static', publicPath: 'static/', }), inject({