mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 17:56:17 +01:00
use worker plugin for storybook webworker integration
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
const WorkerPlugin = require("worker-plugin");
|
||||
|
||||
module.exports = {
|
||||
module: {
|
||||
rules: [
|
||||
@@ -20,10 +22,6 @@ module.exports = {
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.worker\.(j|t)s$/,
|
||||
use: { loader: "worker-loader" }
|
||||
},
|
||||
{
|
||||
test: /\.(css|scss|sass)$/i,
|
||||
use: [
|
||||
@@ -43,5 +41,8 @@ module.exports = {
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".tsx", ".js", ".jsx", ".css", ".scss", ".json"]
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new WorkerPlugin()
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user