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
<html> | |
<head> | |
<script> | |
//<![CDATA[ | |
window.webpackManifest = {"0":"main.3d038f325b02fdee5724.js","1":"1.c4116058de00860e5aa8.js"} | |
//]]> | |
</script> | |
</head> | |
<body> | |
</body> |
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 | |
var ChunkManifestPlugin = require('chunk-manifest-webpack-plugin'); | |
module.exports = { | |
// your config values here | |
plugins: [ | |
new ChunkManifestPlugin({ | |
filename: "chunk-manifest.json", | |
manifestVariable: "webpackManifest" | |
}) |
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 | |
module.exports = { | |
... | |
plugins: [ | |
function() { | |
this.plugin("done", function(stats) { | |
require("fs").writeFileSync( | |
path.join(__dirname, "...", "stats.json"), | |
JSON.stringify(stats.toJson())); | |
}); |
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 | |
module.exports = { | |
... | |
output: { | |
... | |
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
// webpack.config.js | |
module.exports = { | |
entry: { | |
vendor: './src/vendor.js', | |
main: './src/index.js' | |
}, | |
output: { | |
path: path.join(__dirname, 'build'), | |
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
var path = require('path'); | |
var webpack = require('webpack'); | |
var ManifestPlugin = require('webpack-manifest-plugin'); | |
var ChunkManifestPlugin = require('chunk-manifest-webpack-plugin'); | |
var WebpackMd5Hash = require('webpack-md5-hash'); | |
module.exports = { | |
entry: { | |
vendor: './src/vendor.js', | |
main: './src/index.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
case $i in | |
(0) set -- ;; | |
(1) set -- "$args0" ;; | |
(2) set -- "$args0" "$args1" ;; | |
(3) set -- "$args0" "$args1" "$args2" ;; | |
(4) set -- "$args0" "$args1" "$args2" "$args3" ;; | |
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; | |
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; | |
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; | |
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; |
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
"use strict" | |
module.exports = (grunt) -> | |
require("matchdep").filterAll("grunt-*").forEach grunt.loadNpmTasks | |
grunt.initConfig | |
bower: | |
install: |
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
model.destroy({ | |
wait: true, | |
dataType: 'text', // Set this to `text` | |
success: function() { | |
// will be called even if server returns empty string, | |
// which is normal behavior for DELETE requests | |
// See #2218 (https://github.com/jashkenas/backbone/issues/2218) for details | |
} | |
}); |
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
fs = require 'fs' | |
path = require 'path' | |
ensureDir = require 'ensureDir' | |
jsdom = require 'jsdom' | |
phantom = require 'phantom' | |
{exec} = require 'child_process' | |
# ANSI Terminal Colors. | |
# bold = '\033[0;1m' | |
# red = '\033[0;31m' |