@dillonkearns/elm-graphql
Version:
<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">
31 lines (28 loc) • 654 B
JavaScript
var path = require('path');
module.exports = {
// If your entry-point is at "src/index.js" and
// your output is in "/dist", you can ommit
// these parts of the config
module: {
rules: [{
test: /\.html$/,
exclude: /node_modules/,
loader: 'file-loader?name=[name].[ext]'
},
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
// This is what you need in your own work
// loader: "elm-webpack-loader",
loader: '../index.js',
options: {
debug: true
}
}
]
},
devServer: {
inline: true,
stats: 'errors-only'
}
};