style-loader
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -6,3 +6,4 @@ { | ||
"injectType": { | ||
"description": "Allows to setup how styles will be injected into DOM (https://github.com/webpack-contrib/style-loader#injecttype).", | ||
"description": "Allows to setup how styles will be injected into DOM.", | ||
"link": "https://github.com/webpack-contrib/style-loader#injecttype", | ||
"enum": [ | ||
@@ -19,7 +20,9 @@ "styleTag", | ||
"attributes": { | ||
"description": "Adds custom attributes to tag (https://github.com/webpack-contrib/style-loader#attributes).", | ||
"description": "Adds custom attributes to tag.", | ||
"link": "https://github.com/webpack-contrib/style-loader#attributes", | ||
"type": "object" | ||
}, | ||
"insert": { | ||
"description": "Inserts `<style>`/`<link>` at the given position (https://github.com/webpack-contrib/style-loader#insert).", | ||
"description": "Inserts `<style>`/`<link>` at the given position.", | ||
"link": "https://github.com/webpack-contrib/style-loader#insert", | ||
"anyOf": [ | ||
@@ -35,7 +38,9 @@ { | ||
"base": { | ||
"description": "Sets module ID base for DLLPlugin (https://github.com/webpack-contrib/style-loader#base).", | ||
"description": "Sets module ID base for DLLPlugin.", | ||
"link": "https://github.com/webpack-contrib/style-loader#base", | ||
"type": "number" | ||
}, | ||
"esModule": { | ||
"description": "Use the ES modules syntax (https://github.com/webpack-contrib/css-loader#esmodule).", | ||
"description": "Use the ES modules syntax.", | ||
"link": "https://github.com/webpack-contrib/css-loader#esmodule", | ||
"type": "boolean" | ||
@@ -45,2 +50,3 @@ }, | ||
"description": "Transform tag and css when insert 'style' tag into the DOM", | ||
"link": "https://github.com/webpack-contrib/style-loader#styleTagTransform", | ||
"anyOf": [ | ||
@@ -47,0 +53,0 @@ { |
@@ -113,2 +113,3 @@ "use strict"; | ||
const modulePath = stringifyRequest(loaderContext, `${options.insert}`); | ||
loaderContext.addBuildDependency(options.insert); | ||
return esModule ? `import insertFn from ${modulePath};` : `var insertFn = require(${modulePath});`; | ||
@@ -115,0 +116,0 @@ } |
{ | ||
"name": "style-loader", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "style loader module for webpack", | ||
@@ -52,24 +52,24 @@ "license": "MIT", | ||
"@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
"babel-jest": "^27.0.5", | ||
"babel-jest": "^27.0.6", | ||
"cross-env": "^7.0.3", | ||
"css-loader": "^5.2.4", | ||
"css-loader": "^5.2.7", | ||
"del": "^6.0.0", | ||
"del-cli": "^4.0.0", | ||
"del-cli": "^4.0.1", | ||
"es-check": "5.2.3", | ||
"eslint": "^7.28.0", | ||
"eslint": "^7.30.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.23.4", | ||
"file-loader": "^6.2.0", | ||
"husky": "^6.0.0", | ||
"jest": "^27.0.4", | ||
"husky": "^7.0.1", | ||
"jest": "^27.0.6", | ||
"jsdom": "^16.6.0", | ||
"lint-staged": "^11.0.0", | ||
"lint-staged": "^11.0.1", | ||
"memfs": "^3.2.2", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.3.1", | ||
"sass": "^1.35.1", | ||
"prettier": "^2.3.2", | ||
"sass": "^1.35.2", | ||
"sass-loader": "^12.1.0", | ||
"semver": "^7.3.4", | ||
"standard-version": "^9.3.0", | ||
"webpack": "^5.39.1", | ||
"standard-version": "^9.3.1", | ||
"webpack": "^5.45.1", | ||
"webpack-cli": "^4.7.2", | ||
@@ -76,0 +76,0 @@ "webpack-dev-server": "^3.11.2" |
54132
691