diff --git a/.storybook/webpack.config.js b/.storybook/webpack.config.js index 6937638ac91..71a6d7c6805 100644 --- a/.storybook/webpack.config.js +++ b/.storybook/webpack.config.js @@ -3,6 +3,7 @@ // For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config const path = require('path'); +const spawn = require('child_process').spawn; const postcssShopify = require('postcss-shopify'); @@ -111,6 +112,17 @@ module.exports = ({config, mode}) => { }, ]; + config.plugins.push({ + apply: (compiler) => { + compiler.hooks.afterEmit.tap('AfterEmitPlugin', (compilation) => { + const spawnedProcess = spawn('yarn splash', { + shell: true, + stdio: 'inherit', + }); + }); + }, + }); + config.module.rules = [config.module.rules[0], ...extraRules]; if (isProduction) {