@itcase/storybook-config 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/mainConfig.js +7 -10
- package/package.json +1 -1
|
@@ -4,22 +4,19 @@ import chalk from 'chalk'
|
|
|
4
4
|
|
|
5
5
|
const STORYBOOK_PUBLIC_PATH = null
|
|
6
6
|
const WEBPACK_ALIAS = {
|
|
7
|
-
'@': path.resolve(__dirname, '../src'),
|
|
7
|
+
//'@': path.resolve(__dirname, '../src'),
|
|
8
|
+
'@': path.resolve('', '../src'),
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
const MAIN_CONFIG = {
|
|
11
12
|
webpackFinal: async (config) => {
|
|
12
|
-
console.log(
|
|
13
|
-
chalk.green(
|
|
14
|
-
'info => ,
|
|
15
|
-
),
|
|
16
|
-
)
|
|
17
|
-
|
|
18
13
|
console.log(
|
|
19
14
|
chalk.green(
|
|
20
15
|
'info =>',
|
|
21
|
-
chalk.white(
|
|
22
|
-
|
|
16
|
+
chalk.white(
|
|
17
|
+
'Using default "publicPath" set "STORYBOOK_PUBLIC_PATH" variable to use another one',
|
|
18
|
+
),
|
|
19
|
+
),
|
|
23
20
|
)
|
|
24
21
|
|
|
25
22
|
if (STORYBOOK_PUBLIC_PATH) {
|
|
@@ -49,7 +46,7 @@ const MAIN_CONFIG = {
|
|
|
49
46
|
chalk.cyan('@'),
|
|
50
47
|
chalk.white('to'),
|
|
51
48
|
chalk.cyan('../src'),
|
|
52
|
-
chalk.white('change it to use another one')
|
|
49
|
+
chalk.white('change it to use another one'),
|
|
53
50
|
),
|
|
54
51
|
)
|
|
55
52
|
|