Giter Club home page Giter Club logo

Comments (4)

BuugMakerr avatar BuugMakerr commented on September 25, 2024

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.

BuugMakerr avatar BuugMakerr commented on September 25, 2024

(我zz了,好像可以说中文O.O)

from time-analytics-webpack-plugin.

BuugMakerr avatar BuugMakerr commented on September 25, 2024

我尝试了以下几种方法,但是都没有输出时间信息:
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.

ShuiRuTian avatar ShuiRuTian commented on September 25, 2024

抱歉,我从来没用过Vue。。
这个plugin的工作原理是接管plugin和loader,在它们执行前后记录时间。
为此,我们需要包裹本来需要使用的webpack config,从而允许我们做些注入和修改

在你提供的例子里看上去确实包裹了。。
如果可能的话,能提供一个能重现这个问题的repo吗

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.