Files
SCM-Manager/scm-ui/ui-components/.storybook/webpack.config.js
2019-10-20 16:59:02 +02:00

46 lines
931 B
JavaScript

module.exports = {
module: {
rules: [
{
parser: {
system: false,
systemjs: false
}
},
{
test: /\.(js|ts|jsx|tsx)$/,
exclude: /node_modules/,
use: [
{
loader: "babel-loader",
options: {
cacheDirectory: true,
presets: ["@scm-manager/babel-preset"]
}
}
]
},
{
test: /\.(css|scss|sass)$/i,
use: [
// Creates `style` nodes from JS strings
"style-loader",
// Translates CSS into CommonJS
"css-loader",
// Compiles Sass to CSS
"sass-loader"
]
},
{
test: /\.(png|svg|jpg|gif|woff2?|eot|ttf)$/,
use: ["file-loader"]
}
]
},
resolve: {
extensions: [
".ts", ".tsx", ".js", ".jsx", ".css", ".scss", ".json"
]
}
};