Skip to content

Commit

Permalink
Add debugger also to the serverless version
Browse files Browse the repository at this point in the history
rogeriochaves committed Apr 7, 2019
1 parent 08d8b47 commit 7512093
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions boilerplate/webpack.config.static.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const HtmlWebpackPlugin = require("html-webpack-plugin");

const config = {
const config = isDev => ({
entry: "./src/index.js",
output: {
path: `${__dirname}/build`,
@@ -11,7 +11,14 @@ const config = {
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
use: ["elm-webpack-loader"]
use: [
{
loader: "elm-webpack-loader",
options: {
debug: isDev
}
}
]
}
]
},
@@ -20,6 +27,6 @@ const config = {
template: "src/index.ejs"
})
]
};
});

module.exports = config;
module.exports = (_, argv) => config(argv.mode !== "production");

0 comments on commit 7512093

Please sign in to comment.