Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions lib/generators/init-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const Generator = require("yeoman-generator");
const chalk = require("chalk");
const logSymbols = require("log-symbols");

const createCommonsChunkPlugin = require("webpack-addons")
.createCommonsChunkPlugin;
Expand Down Expand Up @@ -36,16 +37,22 @@ module.exports = class WebpackGenerator extends Generator {
let regExpForStyles;
let ExtractUseProps;
let outputPath = "dist";

process.stdout.write(
`\n${chalk.bold("Insecure about some of the questions?")}\n`
"\n" +
logSymbols.info +
chalk.blue(" INFO ") +
"For more information and a detailed description of each question, have a look at " +
chalk.bold.green(
"https://github.com/webpack/webpack-cli/blob/master/INIT.md"
) +
"\n"
);
process.stdout.write(
`\n${chalk.bold.green(
"https://github.com/webpack/webpack-cli/blob/master/INIT.md"
)}\n\n`
logSymbols.info +
chalk.blue(" INFO ") +
"Alternatively, run `webpack-cli --help` for usage info." +
"\n\n"
);

this.configuration.config.webpackOptions.module = {
rules: []
};
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"listr": "^0.12.0",
"loader-utils": "^1.1.0",
"lodash": "^4.17.4",
"log-symbols": "2.1.0",
"mkdirp": "^0.5.1",
"p-each-series": "^1.0.0",
"p-lazy": "^1.0.0",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3712,18 +3712,18 @@ lodash@^4.11.1, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.2,
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

[email protected], log-symbols@^2.0.0, log-symbols@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.1.0.tgz#f35fa60e278832b538dc4dddcbb478a45d3e3be6"
dependencies:
chalk "^2.0.1"

log-symbols@^1.0.1, log-symbols@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
dependencies:
chalk "^1.0.0"

log-symbols@^2.0.0, log-symbols@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.1.0.tgz#f35fa60e278832b538dc4dddcbb478a45d3e3be6"
dependencies:
chalk "^2.0.1"

log-update@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/log-update/-/log-update-1.0.2.tgz#19929f64c4093d2d2e7075a1dad8af59c296b8d1"
Expand Down