mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
Merge pull request #8966 from adamyonk/patch-2
Core: Use logger in base-webpack.config.js
This commit is contained in:
commit
c391327b38
@ -1,6 +1,7 @@
|
|||||||
import autoprefixer from 'autoprefixer';
|
import autoprefixer from 'autoprefixer';
|
||||||
import findUp from 'find-up';
|
import findUp from 'find-up';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import { logger } from '@storybook/node-logger';
|
||||||
|
|
||||||
export async function createDefaultWebpackConfig(storybookBaseConfig) {
|
export async function createDefaultWebpackConfig(storybookBaseConfig) {
|
||||||
const postcssConfigFiles = [
|
const postcssConfigFiles = [
|
||||||
@ -14,7 +15,7 @@ export async function createDefaultWebpackConfig(storybookBaseConfig) {
|
|||||||
|
|
||||||
let postcssOptions = {};
|
let postcssOptions = {};
|
||||||
if (customPostcssConfig) {
|
if (customPostcssConfig) {
|
||||||
console.log(`=> Using custom ${path.basename(customPostcssConfig)}`);
|
logger.info(`=> Using custom ${path.basename(customPostcssConfig)}`);
|
||||||
postcssOptions = {
|
postcssOptions = {
|
||||||
config: {
|
config: {
|
||||||
path: path.dirname(customPostcssConfig),
|
path: path.dirname(customPostcssConfig),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user