diff --git a/demo/dist/index-bundle.js b/demo/dist/index-bundle.js index 913bda0..82bf663 100644 --- a/demo/dist/index-bundle.js +++ b/demo/dist/index-bundle.js @@ -1,4 +1,5 @@ -/******/ (function(modules) { // webpackBootstrap +// [AIV_SHORT] Version: 0.13.36, Thursday, March 15th, 2018, 7:57:59 AM + /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ @@ -60,7 +61,7 @@ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; +/******/ __webpack_require__.p = "/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 2); @@ -87,7 +88,7 @@ test(myVariable); /* 1 */ /***/ (function(module, exports) { -module.exports = "Title0.13.36 7:54:43 0.13.36_7:54:43 V:0.13.36 Date:7:54:43 Version 0.13.36 , 7:54:43" +module.exports = "Title0.13.36 7:57:59 0.13.36_7:57:59 V:0.13.36 Date:7:57:59 Version 0.13.36 , 7:57:59" /***/ }), /* 2 */ @@ -97,4 +98,4 @@ module.exports = __webpack_require__(0); /***/ }) -/******/ ]); \ No newline at end of file +/******/ ]); \ No newline at end of file diff --git a/demo/dist/js/index.js b/demo/dist/js/index.js new file mode 100644 index 0000000..46daa0b --- /dev/null +++ b/demo/dist/js/index.js @@ -0,0 +1,100 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = "/"; +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 2); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + +var html = __webpack_require__(1); + +/** + * Sample code + * @type {number} + */ +var myVariable = 5; +var test = function(val) { + return val * val; +}; +test(myVariable); + + +/***/ }), +/* 1 */ +/***/ (function(module, exports) { + +module.exports = "Title0.13.36 7:58:33 0.13.36_7:58:33 V:0.13.36 Date:7:58:33 Version 0.13.36 , 7:58:33" + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(0); + + +/***/ }) +/******/ ]); \ No newline at end of file diff --git a/demo/package.json b/demo/package.json index ee81bd1..063e5e8 100644 --- a/demo/package.json +++ b/demo/package.json @@ -13,7 +13,6 @@ "devDependencies": { "html-loader": "^0.4.5", "html-minify-loader": "^1.1.0", - "nodemon": "^1.17.2", "raw-loader": "^0.5.1", "webpack": "^2.3.3", "webpack-auto-inject-version": "^0.5.10" diff --git a/demo/webpack.conf.js b/demo/webpack.conf.js index 0e6d6ed..a14bc9e 100644 --- a/demo/webpack.conf.js +++ b/demo/webpack.conf.js @@ -14,8 +14,10 @@ module.exports = { extensions: ['.js', '.html'], }, output: { - filename: '[name]-bundle.js', + filename: 'js/[name].js?[chunkhash]', path: path.resolve(process.cwd(), 'dist'), + chunkFilename: 'js/[id].js?[chunkhash]', + publicPath: '/', // Public path to 'dist' scope in production }, module: { loaders: [ @@ -42,8 +44,8 @@ module.exports = { plugins: [ new WebpackAutoInject({ components: { - AutoIncreaseVersion: false, - InjectAsComment: false, + AutoIncreaseVersion: true, + InjectAsComment: true, InjectByTag: true, }, componentsOptions: {