Comments (5)
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.
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.
@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.
See here... stephencookdev/speed-measure-webpack-plugin#37 (comment)
from time-analytics-webpack-plugin.
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)
- [BUG] This plug-in gives a different time than webpack Compiled successfully time HOT 3
- Lack of appropriate README HOT 8
- [BUG] Same error as at speed-measure-webpack-plugin HOT 1
- [BUG]: Reporting incorrect timing HOT 2
- [BUG] Invalid API schema in conjunction with craco-esbuild HOT 2
- [BUG]: Loaders timing is definitely wrong HOT 9
- How to use it in vue-cli3? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from time-analytics-webpack-plugin.