mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-27 10:19:59 +00:00
22 lines
510 B
JavaScript
22 lines
510 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') }),
|
|
],
|
|
module: {
|
|
rules: [ // fixes https://github.com/graphql/graphql-js/issues/1272
|
|
{
|
|
test: /\.mjs$/,
|
|
include: /node_modules/,
|
|
type: 'javascript/auto',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
};
|