Gatsby plugin to handle elm files
MIT License
Provides compiler support for Elm in gatsby.
npm install --save gatsby-plugin-elm
gatsby-config.js
file.// in gatsby-config.js
plugins: [`gatsby-plugin-elm`];
If you need to pass options to Elm use the plugins options, see elm-webpack-loader for all available options.
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-sass`,
options: {
forceWatch: true,
},
},
];
Since Gatsby has clear development and production modes this plugin sets some default behaviors depending on which is running:
debug: true
forceWatch: true
optimize: true
NOTE: You can override either of these behaviors in the options object in your gatsby-config.js