Giter Site home page Giter Site logo

Comments (4)

sokra avatar sokra commented on May 24, 2024

hmm... nothing changed in grunt-webpack... 😞

from grunt-webpack.

JonDum avatar JonDum commented on May 24, 2024

Yea you're right. I pulled out the plugins from the gruntfile and put them directly in the webpack.config.js then ran webpack directly. Same result. Completely unminified, un-deduped bundle. I even tried doing webpack -p manually. Still didn't run uglify. After a bunch of head-bashing I finally tried without the config file. That finally worked.

I then readded each config option until it broke. It didn't take very long because it broke with my output: {}.

For whatever reason, this prevents the plugins from running:

  output: {
        path: __dirname + "/build/js",
        filename: "main.js?[hash]",
        chunkFilename: "[hash]/js/[id].js",
    },

if I remove that output configand run webpack -p test.js test.js will be properly built and minified/deduped. Looked over http://webpack.github.io/docs/configuration.html#output again to make sure I'm not doing anything weird, didn't really see anything out of the ordinary. Am I doing something wrong?. It's been working fine in production for quite a while now (up to I believe 1.3.1-beta5, broken in 1.4.5 from npm). Updated my test repo here if you want to clone & npm i.

I'll try debugging some more and see if I can glean any more information.

from grunt-webpack.

sokra avatar sokra commented on May 24, 2024

ah ok... I already fixed that in webpack/webpack@2d3b2dc but didn't published it by now...

from grunt-webpack.

JonDum avatar JonDum commented on May 24, 2024

ahhhhhhh so it was the question mark making the regex fail! I git cloned the repo into my node modules and it worked! Thanks sokra! What a weird one.

from grunt-webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.