Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with vue project create by vue-cli 2.0 #110

Open
czero1995 opened this issue Jan 16, 2020 · 1 comment
Open

How to use with vue project create by vue-cli 2.0 #110

czero1995 opened this issue Jan 16, 2020 · 1 comment

Comments

@czero1995
Copy link

image

@Wxh16144
Copy link

I installed the dependency in vue-cli2.x "speed-measure-webpack-plugin": "^1.3.1",

And modified the file build > webpack.prod.conf.js

const SpeedMeasurePlugin = require("speed-measure-webpack-plugin");
const smp = new SpeedMeasurePlugin();
module.exports = smp.wrap(webpackConfig)

And modified the file package.json

{
  scripts": {
    "build:webpack":"webpack --config build/webpack.prod.conf.js"
  }
}

is ok:
SMP ⏱ Plugins
SentryCliPlugin took 14.53 secs
OptimizeCssAssetsWebpackPlugin took 4.48 secs
HtmlWebpackPlugin took 1.27 secs
VueLoaderPlugin took 0.348 secs
MiniCssExtractPlugin took 0.295 secs
HappyPlugin took 0.238 secs
ModuleConcatenationPlugin took 0.085 secs
HashedModuleIdsPlugin took 0.047 secs
CopyPlugin took 0.022 secs
FriendlyErrorsWebpackPlugin took 0.022 secs
DefinePlugin took 0.005 secs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants