Merge pull request #8966 from adamyonk/patch-2

Core: Use logger in base-webpack.config.js
This commit is contained in:
Michael Shilman 2019-11-27 08:02:40 +08:00 committed by GitHub
commit c391327b38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import autoprefixer from 'autoprefixer';
import findUp from 'find-up';
import path from 'path';
import { logger } from '@storybook/node-logger';
export async function createDefaultWebpackConfig(storybookBaseConfig) {
const postcssConfigFiles = [
@ -14,7 +15,7 @@ export async function createDefaultWebpackConfig(storybookBaseConfig) {
let postcssOptions = {};
if (customPostcssConfig) {
console.log(`=> Using custom ${path.basename(customPostcssConfig)}`);
logger.info(`=> Using custom ${path.basename(customPostcssConfig)}`);
postcssOptions = {
config: {
path: path.dirname(customPostcssConfig),