mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-27 15:07:53 +02:00
chore: update webpack-nicelog to v2
This commit is contained in:
parent
75ed92e797
commit
44eb7655ca
3 changed files with 9 additions and 47 deletions
|
@ -11,7 +11,6 @@ const history = require('connect-history-api-fallback');
|
|||
const portfinder = require('portfinder');
|
||||
const serve = require('webpack-serve');
|
||||
const webpackNiceLog = require('webpack-nicelog');
|
||||
const webpackBar = require('webpackbar');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const load = require('../loader');
|
||||
const createDevConfig = require('../webpack/dev');
|
||||
|
@ -46,14 +45,9 @@ module.exports = async function dev(sourceDir, cliOptions = {}) {
|
|||
|
||||
// resolve webpack config
|
||||
let config = createDevConfig(props);
|
||||
config.plugin('WebpackBar').use(webpackBar, [
|
||||
{
|
||||
compiledIn: false
|
||||
}
|
||||
]);
|
||||
config.plugin('WebpackNiceLog').use(webpackNiceLog, [
|
||||
{
|
||||
compileMessage: 'none',
|
||||
name: 'Blogi',
|
||||
onDone: () => {
|
||||
console.log(
|
||||
`\n${chalk.blue('Development server available at ')}${chalk.cyan(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue