From a158b4075c702adbb7e350831ca30e8dae2ce29e Mon Sep 17 00:00:00 2001 From: radswiat Date: Tue, 11 Apr 2017 00:15:51 +0100 Subject: [PATCH] Remove console logs --- demo/dist/index-bundle.js | 4 ++-- demo/webpack.conf.js | 2 +- dist/WebpackAutoInjectVersion.js | 7 ------- package.json | 2 +- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/demo/dist/index-bundle.js b/demo/dist/index-bundle.js index e8a36be..4cc4449 100644 --- a/demo/dist/index-bundle.js +++ b/demo/dist/index-bundle.js @@ -1,4 +1,4 @@ -// [AIV] Build version: 0.2.12 +// [AIV] Build version: 0.5.1 /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -71,7 +71,7 @@ /* 0 */ /***/ (function(module, exports) { -module.exports = "TitleMy awesome project | 0.2.12>" +module.exports = "TitleMy awesome project | 0.5.1>" /***/ }), /* 1 */ diff --git a/demo/webpack.conf.js b/demo/webpack.conf.js index 625c844..bdc05fc 100644 --- a/demo/webpack.conf.js +++ b/demo/webpack.conf.js @@ -1,5 +1,5 @@ var path = require('path'); -// Require WebpackAutoInject from npm installed modules ( prefered ) +// Require WebpackAutoInject from npm installed modules ( preferred ) // var WebpackAutoInject = require('webpack-auto-inject-version').default; // Require WebpackAutoInject from dist - dev purpose only ( do not use the below line ) var WebpackAutoInject = require('../dist/WebpackAutoInjectVersion').default; diff --git a/dist/WebpackAutoInjectVersion.js b/dist/WebpackAutoInjectVersion.js index 5afb4bb..5b82468 100644 --- a/dist/WebpackAutoInjectVersion.js +++ b/dist/WebpackAutoInjectVersion.js @@ -632,22 +632,15 @@ var InjectByTag = function () { value: function apply() { var _this = this; - console.log('------------------- INJECT BY TAG! ------------------'); this.context.compiler.plugin('emit', function (compilation, cb) { - console.log('------------------- INJECT BY TAG! APPLY! ------------------'); - console.log(compilation.assets); // for every output file for (var basename in compilation.assets) { - console.log(_chalk2.default.green.bold('=================')); - console.log(basename); // only if match regex - console.log(basename + ' is: ' + _this.context.config.componentsOptions.InjectByTag.fileRegex.test(basename)); if (_this.context.config.componentsOptions.InjectByTag.fileRegex.test(basename)) { (function () { var replaced = 0; var asset = compilation.assets[basename]; var modFile = asset.source().replace(/(\[AIV\]{version}\[\/AIV\])/g, function () { - console.log('replace?!'); replaced++; return _this.context.version; }); diff --git a/package.json b/package.json index 85d6a2c..5899c6f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-auto-inject-version", - "version": "0.5.0", + "version": "0.5.1", "repository": "radswiat/webpack-auto-inject-version", "description": "Webpack plugin for auto inject version from package.json", "main": "dist/WebpackAutoInjectVersion.js",