2016-07-29 16:07:24 +00:00
|
|
|
var path = require('path')
|
|
|
|
var webpack = require('webpack')
|
|
|
|
|
2017-02-17 17:21:04 +00:00
|
|
|
var config = require('../example/webpack.config.js'),
|
2016-07-29 16:07:24 +00:00
|
|
|
compiler = webpack(config)
|
|
|
|
|
|
|
|
compiler.watch({}, (err, stats) => {
|
|
|
|
if (err) throw err
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
stats.toString({
|
|
|
|
colors: true,
|
|
|
|
hash: true,
|
|
|
|
version: false,
|
|
|
|
timings: true,
|
|
|
|
assets: true,
|
|
|
|
chunks: false,
|
|
|
|
chunkModules: false,
|
|
|
|
modules: false,
|
|
|
|
children: false,
|
|
|
|
cached: false,
|
|
|
|
reasons: false,
|
|
|
|
source: false,
|
|
|
|
errorDetails: false,
|
|
|
|
chunkOrigins: false,
|
|
|
|
})
|
|
|
|
)
|
|
|
|
})
|