@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">
42 lines (36 loc) • 642 B
JavaScript
module.exports = {
entry: './src/index.js',
output: {
path: __dirname + '/dist',
filename: 'index.js'
},
resolve: {
extensions: ['.js', '.elm']
},
module: {
rules: [
{
test: /\.html$/,
exclude: /node_modules/,
use: {
loader: 'file-loader',
options: {
name: '[name].[ext]'
}
}
},
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
use: {
loader: '../index.js'
}
}
],
noParse: /\.elm$/
},
devServer: {
inline: true,
stats: 'errors-only'
}
};