Skip to content

Commit 1f449b8

Browse files
committed
Fix runtime error.
1 parent c908242 commit 1f449b8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

example/webpack.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ module.exports = {
1515
exclude: [/elm-stuff/, /node_modules/],
1616
// This is what you need in your own work
1717
// loader: "elm-webpack-loader",
18-
loader: '../index.js',
19-
options: {
20-
debug: true
21-
}
18+
loader: '../index.js'
2219
}
2320
]
2421
},

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ var getFiles = function(options) {
2626
var getOptions = function(mode) {
2727
var defaultOptions = {
2828
debug: mode === "development",
29-
verbose: mode === "development",
3029
optimize: mode === "production",
3130
};
3231

@@ -180,9 +179,7 @@ function compile(sources, options) {
180179
if (exitCode !== 0) {
181180
return reject("Compilation failed");
182181
}
183-
else if (options.verbose) {
184-
console.log(output);
185-
}
182+
186183
fs.readFile(info.path, { encoding: "utf8" }, function (err, data) {
187184
return err ? reject(err) : resolve(data);
188185
});

0 commit comments

Comments
 (0)