Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
fix compile option
Browse files Browse the repository at this point in the history
  • Loading branch information
KyLeoHC committed Dec 6, 2016
1 parent 923f754 commit e4dc4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ InlineResourcePlugin.prototype.apply = function (compiler) {
}
buildContent = inline(buildContent, _.extend({
handlers: function (source) {
if (source.type == 'js') {
if (source.type == 'js' && self.options.compile) {
var key = self._assetMap[source.filepath],
asset = compilation.assets[key];
source.fileContent = asset ? asset.source() : source.fileContent;
Expand Down

0 comments on commit e4dc4e5

Please sign in to comment.