react-scroll-slider
Version:
React slider component triggered by scrolling
44 lines (41 loc) • 1.13 kB
JavaScript
// you can use this file to add your custom webpack plugins, loaders and anything you like.
// This is just the basic way to add additional webpack configurations.
// For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config
// IMPORTANT
// When you add this file, we won't add the default configurations which is similar
// to "React Create App". This only has babel loader to load JavaScript.
module.exports = {
plugins: [
// your custom plugins
],
module: {
rules: [
// add your custom rules.
{
test: /\.css$/,
use: [ 'style-loader', 'css-loader' ]
},
{
test: /\.(png|jpg|gif)$/,
use: [
{
loader: 'file-loader',
options: {}
}
]
},
{
test: /\.js$/,
// include: path.resolve(__dirname, 'src'),
exclude: /(node_modules|build)/,
use: {
loader: 'babel-loader',
options: {
presets: ['env'],
plugins: ['transform-class-properties']
}
}
}
],
},
};