Minifiedjs, npm and Browserify

Minified Website states:

No matter whether you are including Minified with a script tag or you use a synchronous loader like RequireJS, it is recommended to use the following lines to define the five essential references:

var MINI = require('minified'); var =MINI., $=MINI.$, $$=MINI.$$, EE=MINI.EE, HTML=MINI.HTML;

I have used this but it just fails to assign a minified object to MINI.



This fails with a app.js:36TypeError: undefined is not an object (evaluating 'MINI._')

This is not a standard use of embedded link to the code but using Browserify and Gulp in WebStorm and after installing using npm.

JQuery, ScrollMagic, GSAP or any other package seems to work fine but even though the Minified Module code exists in the build the MINI.$ ref is undefined...

Any ideas anyone?


Category: javascript Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.130 (s). 12 q(s)