Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execution order for builder plugins #74

Open
timaschew opened this issue Aug 11, 2014 · 1 comment
Open

execution order for builder plugins #74

timaschew opened this issue Aug 11, 2014 · 1 comment

Comments

@timaschew
Copy link
Member

I've created a minify plugin for the js and css output.
It doesn't work for visionmedia/debug, because the require replacement is done after all plugins.

The origin source:

if ('undefined' == typeof window) {
  module.exports = require('./lib/debug');
} else {
  module.exports = require('visionmedia~debug@0.7.4/debug.js');
}

output:

module.exports=require("undefined"==typeof window?"./lib/debug":"./debug");

but in this case it would be better to do the minification for the whole output file not for each file.
But I guess there are maybe some cases to use something for each file.

@micky2be
Copy link

micky2be commented Sep 4, 2015

Having similar problem when using uglify-js as a plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants