debianize-mobilizon/js/vue.config.js
Thomas Citharel da817d35c4
⚙️ Build js with .env from parent directory
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-21 09:04:25 +01:00

14 lines
289 B
JavaScript

const Dotenv = require('dotenv-webpack');
const path = require('path');
module.exports = {
lintOnSave: false,
runtimeCompiler: true,
outputDir: '../priv/static',
configureWebpack: {
plugins: [
new Dotenv({ path: path.resolve(process.cwd(), '../.env') }),
],
},
};