Giter Club home page Giter Club logo

Comments (5)

LorenDorez avatar LorenDorez commented on September 25, 2024 1

Hi @ShuiRuTian ,

If i have time this weekend ill try to create one but basically any config work just duplicate it. We use the function syntax to gain access to the env variables

A quick mockup would be something like this

module.exports = (env, argv)  => {
     const config1 = {
        name: 'myconfig1',
        output: {
          filename: './dist-amd.js',
        },
        entry: './app.js',
        mode: 'production',
      };

     const config2 = {
        name: 'myconfig2',
        output: {
          filename: './dist-commonjs.js',
        },
        entry: './app2.js',
        mode: 'production',
      };

     return [config1, config2]
};

You can find about more options here as it would be nice to support all possible options webpack uses
https://webpack.js.org/configuration/configuration-types/#exporting-multiple-configurations

from time-analytics-webpack-plugin.

ShuiRuTian avatar ShuiRuTian commented on September 25, 2024

Hi @LorenDorez, thanks for the request, which is pretty good. And if it's possible, could you please create a minimal repo to reproduce this issue?
It's not required, just want to make sure the fix would fit your situation.

from time-analytics-webpack-plugin.

ShuiRuTian avatar ShuiRuTian commented on September 25, 2024

@LorenDorez
Sorry for asking, how des SMP support it?

Does it wrap the function or the two configurations?


Auh, I got it, never mind :)

from time-analytics-webpack-plugin.

LorenDorez avatar LorenDorez commented on September 25, 2024

See here... stephencookdev/speed-measure-webpack-plugin#37 (comment)

from time-analytics-webpack-plugin.

ShuiRuTian avatar ShuiRuTian commented on September 25, 2024

Thanks!
I was too busy last week.
I made some change, and it starts to work, but it seems there are some multi-thread issues and it fails sometimes...
Hope I could fix it in this weekend...

from time-analytics-webpack-plugin.

Related Issues (8)

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.