This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):"object"==typeof exports?exports["signup-widget"]=t():e["signup-widget"]=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"number":e[t]=e[e[t]];break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(null,[e,t,o].concat(n))}}(e[t])}return e}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),i=r(a),s=n(399),u=r(s),l=n(93),c=n(508),p=r(c),d=n(187),f=n(348),m=r(f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.config.js | |
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
entry: { | |
main: './src/foo', | |
}, | |
output: { | |
path: path.join(__dirname, 'dist'), | |
filename: '[name].[hash].js', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// foo.js | |
import preact from 'preact'; | |
console.log(preact.toString()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Asset Size Chunks Chunk Names | |
main.db3022283e4b37cce06b.js 23.6 kB 0 [emitted] main | |
[0] ./~/preact/dist/preact.js 20.5 kB {0} [built] | |
[1] ./src/foo.js 61 bytes {0} [built] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.config.js | |
// ... | |
plugins: [ | |
new webpack.optimize.CommonsChunkPlugin({ | |
name: ['vendor'] | |
}) | |
] | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Asset Size Chunks Chunk Names | |
main.423221edd7eef26d646e.js 506 bytes 0 [emitted] main | |
vendor.423221edd7eef26d646e.js 26.7 kB 1 [emitted] vendor | |
[0] ./~/preact/dist/preact.js 20.5 kB {1} [built] | |
[1] ./src/foo.js 61 bytes {0} [built] | |
[2] multi preact 28 bytes {1} [built] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.config.js | |
// ... | |
output: { | |
path: path.join(__dirname, 'dist'), | |
filename: '[name].[chunkhash].js', | |
}, | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Asset Size Chunks Chunk Names | |
main.edc22f71759cbe5336ae.js 528 bytes 0 [emitted] main | |
vendor.27f1230219fd2a606a54.js 26.7 kB 1 [emitted] vendor | |
[0] ./~/preact/dist/preact.js 20.5 kB {1} [built] | |
[1] ./src/foo.js 83 bytes {0} [built] | |
[2] multi preact 28 bytes {1} [built] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// foo.js | |
// ... | |
console.log(preact.toString()); | |
console.log("hello world"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Asset Size Chunks Chunk Names | |
main.91022729b32987083f0d.js 506 bytes 0 [emitted] main | |
vendor.0da51f051fcf235d7027.js 26.7 kB 1 [emitted] vendor | |
[0] ./~/preact/dist/preact.js 20.5 kB {1} [built] | |
[1] ./src/foo.js 61 bytes {0} [built] | |
[2] multi preact 28 bytes {1} [built] |
OlderNewer