Skip to content

Instantly share code, notes, and snippets.

@belgamo
Created May 20, 2020 15:30
Show Gist options
  • Save belgamo/4c0aac524a659b6fe824f9bed58f9c6f to your computer and use it in GitHub Desktop.
Save belgamo/4c0aac524a659b6fe824f9bed58f9c6f to your computer and use it in GitHub Desktop.
{
name: 'manager',
mode: 'development',
bail: false,
devtool: 'none',
entry: [
'/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/dist/server/common/polyfills.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/dist/client/manager/index.js'
],
output: {
path: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/dist/public',
filename: '[name].[chunkhash].bundle.js',
publicPath: ''
},
cache: {},
plugins: [
DllReferencePlugin {
options: {
context: '/home/belgamo/Documents/Projects/animavita/node_modules/node_modules',
manifest: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/dll/storybook_ui-manifest.json'
}
},
HtmlWebpackPlugin {
options: {
template: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/dist/server/templates/index.ejs',
templateContent: false,
templateParameters: [Function: templateParameters],
filename: 'index.html',
hash: false,
inject: false,
compile: true,
favicon: false,
minify: 'auto',
cache: true,
showErrors: true,
chunks: 'all',
excludeChunks: [],
chunksSortMode: 'none',
meta: {},
base: false,
title: 'Webpack App',
xhtml: false,
alwaysWriteToDisk: true
},
childCompilerHash: undefined,
childCompilationOutputName: undefined,
assetJson: undefined,
hash: undefined,
version: 4
},
CaseSensitivePathsPlugin {
options: {},
logger: {
log: [Function: bound consoleCall],
warn: [Function: bound consoleCall],
dir: [Function: bound consoleCall],
time: [Function: bound consoleCall],
timeEnd: [Function: bound consoleCall],
timeLog: [Function: bound consoleCall],
trace: [Function: bound consoleCall],
assert: [Function: bound consoleCall],
clear: [Function: bound consoleCall],
count: [Function: bound consoleCall],
countReset: [Function: bound consoleCall],
group: [Function: bound consoleCall],
groupEnd: [Function: bound consoleCall],
table: [Function: bound consoleCall],
debug: [Function: bound consoleCall],
info: [Function: bound consoleCall],
dirxml: [Function: bound consoleCall],
error: [Function: bound consoleCall],
groupCollapsed: [Function: bound consoleCall],
Console: [Function: Console],
profile: [Function: profile],
profileEnd: [Function: profileEnd],
timeStamp: [Function: timeStamp],
context: [Function: context],
[Symbol(kBindStreamsEager)]: [Function: bound ],
[Symbol(kBindStreamsLazy)]: [Function: bound ],
[Symbol(kBindProperties)]: [Function: bound ],
[Symbol(kWriteToConsole)]: [Function: bound ],
[Symbol(kGetInspectOptions)]: [Function: bound ],
[Symbol(kFormatForStdout)]: [Function: bound ],
[Symbol(kFormatForStderr)]: [Function: bound ]
},
pathCache: {},
fsOperations: 0,
primed: false
},
DefinePlugin { definitions: {} },
DefinePlugin {
definitions: {
'process.env': {
NODE_ENV: '"development"',
NODE_PATH: '""',
PUBLIC_URL: '""'
},
NODE_ENV: '"development"'
}
},
ContextReplacementPlugin {
resourceRegExp: /graphql-language-service-interface[/\\]dist/,
newContentResource: undefined,
newContentRecursive: undefined,
newContentRegExp: /\.js$/
},
NormalModuleReplacementPlugin {
resourceRegExp: /core-js/,
newResource: [Function]
}
],
module: {
rules: [
{
test: /\.(mjs|jsx?)$/,
use: [
{
loader: 'babel-loader',
options: {
cacheDirectory: '/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules/.cache/storybook',
presets: [
[
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-env/lib/index.js',
{
shippedProposals: true,
useBuiltIns: 'usage',
corejs: '3'
}
],
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-react/lib/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-flow/lib/index.js'
],
plugins: [
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-proposal-object-rest-spread/lib/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-proposal-class-properties/lib/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-syntax-dynamic-import/lib/index.js',
[
'/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-emotion/dist/babel-plugin-emotion.cjs.js',
{ sourceMap: true, autoLabel: true }
],
'/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-macros/dist/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-transform-react-constant-elements/lib/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-add-react-displayname/index.js',
[
'/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-react-docgen/lib/index.js',
{
DOC_GEN_COLLECTION_NAME: 'STORYBOOK_REACT_CLASSES'
}
]
]
}
}
],
include: [ '/home/belgamo/Documents/Projects/animavita/packages/ui' ],
exclude: [
'/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules'
]
},
{
test: /\.css$/,
use: [
'/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/node_modules/style-loader/dist/cjs.js',
{
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/node_modules/css-loader/dist/cjs.js',
options: { importLoaders: 1 }
}
]
},
{
test: /\.(svg|ico|jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|cur|ani|pdf)(\?.*)?$/,
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/node_modules/file-loader/dist/cjs.js',
query: { name: 'static/media/[name].[hash:8].[ext]' }
},
{
test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)(\?.*)?$/,
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/node_modules/url-loader/dist/cjs.js',
query: { limit: 10000, name: 'static/media/[name].[hash:8].[ext]' }
}
]
},
resolve: {
extensions: [ '.mjs', '.js', '.jsx', '.json' ],
modules: [ 'node_modules' ],
alias: {
'@emotion/core': '/home/belgamo/Documents/Projects/animavita/node_modules/@emotion/core',
'@emotion/styled': '/home/belgamo/Documents/Projects/animavita/node_modules/@emotion/styled',
'emotion-theming': '/home/belgamo/Documents/Projects/animavita/node_modules/emotion-theming',
'@storybook/addons': '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/addons',
'@storybook/api': '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/api',
'@storybook/channels': '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/channels',
'@storybook/components': '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/components',
'@storybook/core-events': '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core-events',
'@storybook/router': '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/router',
'@storybook/theming': '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/theming',
'@storybook/ui': '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/ui',
'prop-types': '/home/belgamo/Documents/Projects/animavita/node_modules/prop-types',
react: '/home/belgamo/Documents/Projects/animavita/node_modules/react',
'react-dom': '/home/belgamo/Documents/Projects/animavita/node_modules/react-dom'
}
},
recordsPath: '/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules/.cache/storybook/records.json',
performance: { hints: false },
optimization: { splitChunks: { chunks: 'all' }, runtimeChunk: true }
}
info => Loading custom Webpack config (full-control mode).
info => Using base config because react-scripts is not installed.
Preview webpack config
{
mode: 'development',
bail: false,
devtool: '#cheap-module-source-map',
entry: [AsyncFunction],
output: {
path: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/dist/public',
filename: '[name].[hash].bundle.js',
publicPath: '/'
},
plugins: [
HtmlWebpackPlugin {
options: {
template: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/dist/server/templates/index.ejs',
templateContent: false,
templateParameters: [Function: templateParameters],
filename: 'iframe.html',
hash: false,
inject: false,
compile: true,
favicon: false,
minify: 'auto',
cache: true,
showErrors: true,
chunks: 'all',
excludeChunks: [],
chunksSortMode: 'none',
meta: {},
base: false,
title: 'Webpack App',
xhtml: false,
alwaysWriteToDisk: true
},
childCompilerHash: undefined,
childCompilationOutputName: undefined,
assetJson: undefined,
hash: undefined,
version: 4
},
DefinePlugin {
definitions: {
'process.env': {
NODE_ENV: '"development"',
NODE_PATH: '""',
PUBLIC_URL: '"."'
},
NODE_ENV: '"development"'
}
},
WatchMissingNodeModulesPlugin {
nodeModulesPath: '/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules'
},
HotModuleReplacementPlugin {
options: {},
multiStep: undefined,
fullBuildTimeout: 200,
requestTimeout: 10000
},
CaseSensitivePathsPlugin {
options: {},
logger: {
log: [Function: bound consoleCall],
warn: [Function: bound consoleCall],
dir: [Function: bound consoleCall],
time: [Function: bound consoleCall],
timeEnd: [Function: bound consoleCall],
timeLog: [Function: bound consoleCall],
trace: [Function: bound consoleCall],
assert: [Function: bound consoleCall],
clear: [Function: bound consoleCall],
count: [Function: bound consoleCall],
countReset: [Function: bound consoleCall],
group: [Function: bound consoleCall],
groupEnd: [Function: bound consoleCall],
table: [Function: bound consoleCall],
debug: [Function: bound consoleCall],
info: [Function: bound consoleCall],
dirxml: [Function: bound consoleCall],
error: [Function: bound consoleCall],
groupCollapsed: [Function: bound consoleCall],
Console: [Function: Console],
profile: [Function: profile],
profileEnd: [Function: profileEnd],
timeStamp: [Function: timeStamp],
context: [Function: context],
[Symbol(kBindStreamsEager)]: [Function: bound ],
[Symbol(kBindStreamsLazy)]: [Function: bound ],
[Symbol(kBindProperties)]: [Function: bound ],
[Symbol(kWriteToConsole)]: [Function: bound ],
[Symbol(kGetInspectOptions)]: [Function: bound ],
[Symbol(kFormatForStdout)]: [Function: bound ],
[Symbol(kFormatForStderr)]: [Function: bound ]
},
pathCache: {},
fsOperations: 0,
primed: false
},
ProgressPlugin {
profile: false,
handler: undefined,
modulesCount: 500,
showEntries: false,
showModules: true,
showActiveModules: true
},
DefinePlugin { definitions: {} },
NormalModuleReplacementPlugin {
resourceRegExp: /core-js/,
newResource: [Function]
},
DefinePlugin {
definitions: {
'process.env': {
NODE_ENV: '"development"',
PUBLIC_URL: '""',
APP_MANIFEST: '{"name":"@animavita/ui","slug":"@animavitaui","version":"1.0.0","sdkVersion":"36.0.0","platforms":["ios","android","web"],"web":{}}'
},
__DEV__: true
}
}
],
module: {
rules: [
{
test: /\.(mjs|jsx?)$/,
use: [
{
loader: 'babel-loader',
options: {
cacheDirectory: '/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules/.cache/storybook',
presets: [
[
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-env/lib/index.js',
{
shippedProposals: true,
useBuiltIns: 'usage',
corejs: '3'
}
],
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-react/lib/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-flow/lib/index.js'
],
plugins: [
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-proposal-object-rest-spread/lib/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-proposal-class-properties/lib/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-syntax-dynamic-import/lib/index.js',
[
'/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-emotion/dist/babel-plugin-emotion.cjs.js',
{ sourceMap: true, autoLabel: true }
],
'/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-macros/dist/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-transform-react-constant-elements/lib/index.js',
'/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-add-react-displayname/index.js',
[
'/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-react-docgen/lib/index.js',
{
DOC_GEN_COLLECTION_NAME: 'STORYBOOK_REACT_CLASSES'
}
]
]
}
}
],
include: [ '/home/belgamo/Documents/Projects/animavita/packages/ui' ],
exclude: [
'/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules'
]
},
{
test: /\.md$/,
use: [
{
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/raw-loader/dist/cjs.js'
}
]
},
{
test: /\.css$/,
sideEffects: true,
use: [
'/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/node_modules/style-loader/dist/cjs.js',
{
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/node_modules/css-loader/dist/cjs.js',
options: { importLoaders: 1 }
},
{
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/postcss-loader/src/index.js',
options: {
ident: 'postcss',
postcss: {},
plugins: [Function: plugins]
}
}
]
},
{
test: /\.(svg|ico|jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|cur|ani|pdf)(\?.*)?$/,
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/node_modules/file-loader/dist/cjs.js',
query: { name: 'static/media/[name].[hash:8].[ext]' }
},
{
test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)(\?.*)?$/,
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/@storybook/core/node_modules/url-loader/dist/cjs.js',
query: { limit: 10000, name: 'static/media/[name].[hash:8].[ext]' }
},
{
test: /\.(gif|jpe?g|png|svg)$/,
use: {
loader: '/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules/url-loader/dist/cjs.js',
options: { name: '[name].[ext]' }
}
},
{
test: /\.(ts|tsx)$/,
loader: '/home/belgamo/Documents/Projects/animavita/node_modules/babel-loader/lib/index.js',
options: {
presets: [ '@babel/preset-typescript', '@babel/preset-react' ]
},
include: [
'/home/belgamo/Documents/Projects/animavita/packages/ui',
'/home/belgamo/Documents/Projects/animavita/packages/theme'
]
},
{
test: /\.html$/,
use: [ 'html-loader' ],
exclude: '/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules/@expo/webpack-config/web-default'
},
{
test: /\.(mjs|[jt]sx?)$/,
use: {
loader: '/home/belgamo/Documents/Projects/animavita/packages/ui/node_modules/@expo/webpack-config/node_modules/babel-loader/lib/index.js',
options: {
babelrc: false,
configFile: true,
sourceType: 'unambiguous',
root: '/home/belgamo/Documents/Projects/animavita/packages/ui',
compact: false,
sourceMaps: true,
inputSourceMap: true,
cacheIdentifier: 'babel-cache-1-{"filename":"/home/belgamo/Documents/Projects/animavita/packages/ui/foobar.js","cwd":"/home/belgamo/Documents/Projects/animavita/packages/ui","sourceFileName":"/home/belgamo/Documents/Projects/animavita/packages/ui/foobar.js","babelrc":false,"configFile":false,"passPerPreset":false,"envName":"development","root":"/home/belgamo/Documents/Projects/animavita/packages/ui","plugins":[{"dirname":"/home/belgamo/Documents/Projects/animavita/packages/ui","file":{"request":"relay","resolved":"/home/belgamo/Documents/Projects/animavita/node_modules/babel-plugin-relay/index.js"}},{"options":{"regenerator":true},"dirname":"/home/belgamo/Documents/Projects/animavita/packages/ui","file":{"request":"@babel/plugin-transform-runtime","resolved":"/home/belgamo/Documents/Projects/animavita/node_modules/@babel/plugin-transform-runtime/lib/index.js"}}],"presets":[{"options":{"targets":{"node":"current"},"useBuiltIns":"entry","corejs":3},"dirname":"/home/belgamo/Documents/Projects/animavita/packages/ui","file":{"request":"@babel/preset-env","resolved":"/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-env/lib/index.js"}},{"dirname":"/home/belgamo/Documents/Projects/animavita/packages/ui","file":{"request":"@babel/preset-typescript","resolved":"/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-typescript/lib/index.js"}},{"dirname":"/home/belgamo/Documents/Projects/animavita/packages/ui","file":{"request":"@babel/preset-react","resolved":"/home/belgamo/Documents/Projects/animavita/node_modules/@babel/preset-react/lib/index.js"}},{"dirname":"/home/belgamo/Documents/Projects/animavita/packages/ui","file":{"request":"babel-preset-expo","resolved":"/home/belgamo/Documents/Projects/animavita/node_modules/babel-preset-expo/index.js"}}]}',
cacheCompression: false,
cacheDirectory: '/home/belgamo/Documents/Projects/animavita/packages/ui/.expo/web/cache/development/babel-loader',
caller: {
__dangerous_rule_id: 'expo-babel-loader',
bundler: 'webpack',
platform: 'web',
mode: 'development'
}
}
},
include: [Function: include]
}
]
},
resolve: {
extensions: [
'.web.ts', '.web.tsx',
'.web.mjs', '.web.js',
'.web.jsx', '.ts',
'.tsx', '.mjs',
'.js', '.jsx',
'.json', '.wasm'
],
modules: [ 'node_modules' ],
alias: {
'react-native': 'react-native-web',
'react-native$': 'react-native-web',
'react-native/Libraries/Components/View/ViewStylePropTypes$': 'react-native-web/dist/exports/View/ViewStylePropTypes',
'react-native/Libraries/EventEmitter/RCTDeviceEventEmitter$': 'react-native-web/dist/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter',
'react-native/Libraries/vendor/emitter/EventEmitter$': 'react-native-web/dist/vendor/react-native/emitter/EventEmitter',
'react-native/Libraries/vendor/emitter/EventSubscriptionVendor$': 'react-native-web/dist/vendor/react-native/emitter/EventSubscriptionVendor',
'react-native/Libraries/EventEmitter/NativeEventEmitter$': 'react-native-web/dist/vendor/react-native/NativeEventEmitter',
'@react-native-community/netinfo': 'react-native-web/dist/exports/NetInfo',
'react-native/Libraries/Image/AssetSourceResolver$': 'expo-asset/build/AssetSourceResolver',
'react-native/Libraries/Image/assetPathUtils$': 'expo-asset/build/Image/assetPathUtils',
'react-native/Libraries/Image/resolveAssetSource$': 'expo-asset/build/resolveAssetSource'
},
symlinks: false
},
optimization: {
splitChunks: { chunks: 'all' },
runtimeChunk: true,
minimizer: [
TerserPlugin {
options: {
test: /\.m?js(\?.*)?$/i,
chunkFilter: [Function: chunkFilter],
warningsFilter: [Function: warningsFilter],
extractComments: true,
sourceMap: true,
cache: true,
cacheKeys: [Function: cacheKeys],
parallel: true,
include: undefined,
exclude: undefined,
minify: undefined,
terserOptions: { mangle: false, keep_fnames: true }
}
}
]
},
performance: { hints: false }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment