Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
apply convention when using LNG_BUILD_FOLDER
Browse files Browse the repository at this point in the history
  • Loading branch information
lewispeel committed Nov 2, 2020
1 parent b84a00c commit b5ebfd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/configs/rollup.es5.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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({
Expand Down
3 changes: 2 additions & 1 deletion src/configs/rollup.es6.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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({
Expand Down

0 comments on commit b5ebfd4

Please sign in to comment.