2018-05-19 08:19:21 +00:00
|
|
|
const Dotenv = require('dotenv-webpack');
|
2018-12-21 08:04:25 +00:00
|
|
|
const path = require('path');
|
2018-05-18 09:28:29 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
lintOnSave: false,
|
2018-07-04 12:29:17 +00:00
|
|
|
runtimeCompiler: true,
|
2018-10-10 12:57:35 +00:00
|
|
|
outputDir: '../priv/static',
|
2018-05-18 09:28:29 +00:00
|
|
|
configureWebpack: {
|
|
|
|
plugins: [
|
2018-12-21 08:04:25 +00:00
|
|
|
new Dotenv({ path: path.resolve(process.cwd(), '../.env') }),
|
2018-05-18 09:28:29 +00:00
|
|
|
],
|
2019-01-18 13:47:10 +00:00
|
|
|
module: {
|
|
|
|
rules: [ // fixes https://github.com/graphql/graphql-js/issues/1272
|
|
|
|
{
|
|
|
|
test: /\.mjs$/,
|
|
|
|
include: /node_modules/,
|
|
|
|
type: 'javascript/auto',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2018-05-18 09:28:29 +00:00
|
|
|
},
|
|
|
|
};
|