1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-27 02:10:27 +00:00
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

13 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') }),
],
},
};