Skip to content

execution order for builder plugins #74

Description

@timaschew

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions