usemin-lib
Library version of usemin. For purists, those who doesn't use build tools like Grunt and Gulp, but just use NPM as their build tool.
Getting started
To use this now, install with this command:
npm install usemin-lib
From GitHub
git clone https://github.com/driftyco/usemin-lib.git
cd usemin-lib
npm install
npm link
Usage
var fs = path = ;var indexHtmlFilePath = path;var useminLib = ;var content = fs;var blocks = useminLib;var process = useminLib;var output = useminLib;console;
Example HTML
<!-- build:css css/main.js --><!-- endbuild --> <!-- build:js js/main.js --><!-- endbuild --> <!-- build:js js/main.js --><!-- endbuild -->
Running the command with --rmlr true
will output:
<link rel="stylesheet" href="css/main.js">
<script src="js/main.js"></script>
<script defer async src="js/main.js"></script>