diff --git a/package.json b/package.json index ebbf367e2..cb8e14cc5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,10 @@ "precommit": "lint-staged" }, "lint-staged": { - "*.{ts,md}": ["prettier --write", "git add"] + "*.{ts,md}": [ + "prettier --write", + "git add" + ] }, "repository": { "type": "git", diff --git a/test/comparison-tests/html-webpack-plugin/_IGNORE_ b/test/comparison-tests/html-webpack-plugin/_IGNORE_ deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/bundle.js b/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/bundle.js index 46ba60048..c9f87f770 100644 --- a/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/bundle.js +++ b/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/bundle.js @@ -44,6 +44,11 @@ /******/ } /******/ }; /******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? @@ -59,16 +64,22 @@ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ +/******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 0); +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); /******/ }) /************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { +/******/ ({ -console.log("hello"); +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports) { +eval("console.log(\"hello\");\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }) -/******/ ]); \ No newline at end of file + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/output.transpiled.txt b/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/output.transpiled.txt new file mode 100644 index 000000000..19483c953 --- /dev/null +++ b/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/output.transpiled.txt @@ -0,0 +1,14 @@ +Built at: 2018-3-18 09:13:32 + Asset Size Chunks Chunk Names + bundle.js 2.8 KiB main [emitted] main +index.html 190 bytes [emitted] +Entrypoint main = bundle.js +[./app.ts] 22 bytes {main} [built] +Child html-webpack-plugin for "index.html": + Asset Size Chunks Chunk Names + index.html 550 KiB 0 + Entrypoint undefined = index.html + [../../node_modules/html-webpack-plugin/lib/loader.js!./index.html] /node_modules/html-webpack-plugin/lib/loader.js!./index.html 509 bytes {0} [built] + [../../node_modules/lodash/lodash.js] /node_modules/lodash/lodash.js 527 KiB {0} [built] + [../../node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 489 bytes {0} [built] + [../../node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built] \ No newline at end of file diff --git a/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/output.txt b/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/output.txt index 20e4c04a7..539593f36 100644 --- a/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/output.txt +++ b/test/comparison-tests/html-webpack-plugin/expectedOutput-2.7/output.txt @@ -1,11 +1,14 @@ +Built at: 2018-3-18 09:13:30 Asset Size Chunks Chunk Names - bundle.js 2.5 kB 0 [emitted] main -index.html 182 bytes [emitted] - [0] ./.test/html-webpack-plugin/app.ts 22 bytes {0} [built] + bundle.js 2.8 KiB main [emitted] main +index.html 190 bytes [emitted] +Entrypoint main = bundle.js +[./app.ts] 22 bytes {main} [built] Child html-webpack-plugin for "index.html": - Asset Size Chunks Chunk Names - index.html 544 kB 0 - [0] ./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/html-webpack-plugin/default_index.ejs 538 bytes {0} [built] - [1] ./node_modules/lodash/lodash.js 540 kB {0} [built] - [2] (webpack)/buildin/global.js 488 bytes {0} [built] - [3] (webpack)/buildin/module.js 495 bytes {0} [built] \ No newline at end of file + Asset Size Chunks Chunk Names + index.html 550 KiB 0 + Entrypoint undefined = index.html + [../../node_modules/html-webpack-plugin/lib/loader.js!./index.html] /node_modules/html-webpack-plugin/lib/loader.js!./index.html 509 bytes {0} [built] + [../../node_modules/lodash/lodash.js] /node_modules/lodash/lodash.js 527 KiB {0} [built] + [../../node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 489 bytes {0} [built] + [../../node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built] \ No newline at end of file diff --git a/test/comparison-tests/html-webpack-plugin/index.html b/test/comparison-tests/html-webpack-plugin/index.html index 8a7f3ef8b..762fd6d80 100644 --- a/test/comparison-tests/html-webpack-plugin/index.html +++ b/test/comparison-tests/html-webpack-plugin/index.html @@ -5,5 +5,5 @@