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?

漂亮男人漂亮男人2870 days ago706

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-19 10:35:17

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

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    <code>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

            }));

    });</code>

    reply
    0
  • Cancelreply