mirror of
https://github.com/bendtherules/react-vis-gridarea.git
synced 2026-08-18 13:51:59 +00:00
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
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
|
|
],
|
|
resolve: {
|
|
// Add `.ts` and `.tsx` as a resolvable extension.
|
|
extensions: ['.ts', '.tsx', '.js']
|
|
},
|
|
module: {
|
|
rules: [
|
|
{ test: /\.js$/, loader: 'babel-loader' },
|
|
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
|
|
{ test: /\.tsx?$/, loader: 'babel-loader!ts-loader' },
|
|
{
|
|
test: /\.css$/,
|
|
use: [
|
|
{
|
|
loader: 'style-loader',
|
|
},
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
sourceMap: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
};
|