⚙️ Build js with .env from parent directory
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
36bed9501a
commit
088df9e207
@ -1,4 +1,5 @@
|
|||||||
const Dotenv = require('dotenv-webpack');
|
const Dotenv = require('dotenv-webpack');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
lintOnSave: false,
|
lintOnSave: false,
|
||||||
@ -6,7 +7,7 @@ module.exports = {
|
|||||||
outputDir: '../priv/static',
|
outputDir: '../priv/static',
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
plugins: [
|
plugins: [
|
||||||
new Dotenv(),
|
new Dotenv({ path: path.resolve(process.cwd(), '../.env') }),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user