Skip to content

Optimizations #768

Closed
Closed

Description

@thetutlage

I have not found any place to ask general questions , so dropping them here..

UglifyJs

It is too slow for some reason, uglify using command line is 10 times faster then webpack.

Loaders

We can pass regular expressions to match file extension , why not specific file extension inside a directory.

loaders: [
        {
          test: /\.js$/,
          loader: 'some-loader'
       }
]

Can i pass something like core/*.js or 'core/app.js'

Activity

  1. jhnns commented on Feb 9, 2015

    @jhnns
    Contributor

    test is just a regular expression. You can do all the magic you want. What you're asking for are glob patterns (which imho provide not enough flexibility in this situation)

  2. thetutlage commented on Feb 9, 2015

    @thetutlage
    Author

    No issues with that, later i was able to build better regExp , any thoughts on UglifyJs

  3. Chrazy commented on Feb 9, 2015

    @Chrazy

    Remove the use of sourcemaps when you're minifying and it will speed up.

  4. bebraw commented on Nov 15, 2015

    @bebraw
    Contributor

    @thetutlage Did generating sourcemaps explain the difference?

  5. bebraw commented on Apr 24, 2016

    @bebraw
    Contributor

    Closing. Feel free to open specific questions at Stack Overflow.

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

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions