Comments (4)
Thank you for providing this plugin. If I want to configure this plugin in my Vue2 project based on Vue cli3, that is, in vue.config.js, what should I do, especially when both configureWebpack and chainWebpack exist
from time-analytics-webpack-plugin.
(我zz了,好像可以说中文O.O)
from time-analytics-webpack-plugin.
我尝试了以下几种方法,但是都没有输出时间信息:
1.
在vue.config.js中:
const { TimeAnalyticsPlugin } = require("time-analytics-webpack-plugin");
module.exports = TimeAnalyticsPlugin.wrap({...});
2.
直接修改build/index.js源码:
const { TimeAnalyticsPlugin } = require('time-analytics-webpack-plugin');
const webpackConig = TimeAnalyticsPlugin.wrap(webpackConfig);
return new Promise((resolve, reject) => {
webpack(webpackConfig, (err, stats) => {
...
})
})
这两种方法都不生效
from time-analytics-webpack-plugin.
抱歉,我从来没用过Vue。。
这个plugin的工作原理是接管plugin和loader,在它们执行前后记录时间。
为此,我们需要包裹本来需要使用的webpack config,从而允许我们做些注入和修改
在你提供的例子里看上去确实包裹了。。
如果可能的话,能提供一个能重现这个问题的repo吗
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
- Support Multiple Configs [FEATURE] HOT 5
- [BUG] Invalid API schema in conjunction with craco-esbuild HOT 2
- [BUG]: Loaders timing is definitely wrong HOT 9
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.