This file contains 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 is a module bundler | |
// This means webpack takes modules with dependencies | |
// and emits static assets representing those modules. | |
// dependencies can be written in CommonJs | |
var commonjs = require("./commonjs"); | |
// or in AMD | |
define(["amd-module", "../file"], function(amdModule, file) { | |
// while previous constructs are sync | |
// this is async |
This file contains 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
/* | |
* basic node program for js/css minification using yuicompressor | |
* | |
* Compress the file test.js: | |
* $ node compress.js ../js/test.js | |
* Created Minified File: ../js/test.min.js | |
* | |
* Compress the file test.css | |
* $ node compress.js ../css/test.css | |
* Created Minified File: ../css/test.min.css |
This file contains 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
/* Matches all <em> elements which are the next sibling of a <strong> element */ | |
strong + em { | |
/* declarations */ | |
} |
This file contains 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
/* | |
* Simple boilerplate Node Minification build for uglify-js | |
* | |
* Install: npm install uglify-js; cd to the this script's dir | |
* $ node <script-name>.js | |
*/ | |
var parser = require( 'uglify-js' ).parser | |
, uglify = require( 'uglify-js' ).uglify | |
, path = require('path') | |
, fs = require( 'fs' ) |