search

Home  >  Q&A  >  body text

javascript - What is the error prompt module that comes with vue-cli's webpack template?

I also want to use this error message for my own configured webpack. How to do it?

漂亮男人漂亮男人2836 days ago689

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-19 10:35:17

    http://webpack.github.io/docs...

    var webpack = require("webpack");
    webpack({
        // configuration
    }, function(err, stats) {
            if (err) { throw new gutil.PluginError('webpack:build', err); }
            gutil.log('[webpack:build]', stats.toString({
                chunks: false, // Makes the build much quieter
                colors: true
            }));
    });

    reply
    0
  • Cancelreply