MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / styleLoader

Function styleLoader

scripts/webpack-base.js:80–100  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

78});
79
80function styleLoader(options) {
81 const {
82 extract,
83 loaders = [],
84 fallback = 'style-loader',
85 modules = false,
86 } = options || {};
87 const cssLoader = {
88 loader: 'css-loader',
89 options: {
90 modules,
91 importLoaders: 1,
92 sourceMap: false,
93 },
94 };
95 return [
96 extract ? MiniCssExtractPlugin.loader : fallback,
97 cssLoader,
98 ...loaders,
99 ];
100}
101
102function styleRule(options, rule) {
103 return {

Callers 1

styleRuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected