Rename to newer-universal-style-loader
parent
45251c7af0
commit
842a6a415c
14
README.md
14
README.md
|
@ -14,7 +14,7 @@ Adds CSS to the DOM by injecting a `<style>` tag
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install simple-universal-style-loader --save-dev
|
npm install newer-universal-style-loader --save-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -23,7 +23,7 @@ npm install simple-universal-style-loader --save-dev
|
||||||
|
|
||||||
### Webpack Configuration
|
### Webpack Configuration
|
||||||
|
|
||||||
`simple-universal-style-loader` is a drop-in replacement for the usual `style-loader`.
|
`newer-universal-style-loader` is a drop-in replacement for the usual `style-loader`.
|
||||||
|
|
||||||
It's recommended to combine it with the [`css-loader`](https://github.com/webpack/css-loader).
|
It's recommended to combine it with the [`css-loader`](https://github.com/webpack/css-loader).
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ Example for Webpack 5 with CSS module support:
|
||||||
rules: [ {
|
rules: [ {
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
use: [ {
|
use: [ {
|
||||||
loader: "simple-universal-style-loader",
|
loader: "newer-universal-style-loader",
|
||||||
options: { singleton: true }
|
options: { singleton: true }
|
||||||
}, {
|
}, {
|
||||||
loader: "css-loader",
|
loader: "css-loader",
|
||||||
|
@ -65,7 +65,7 @@ Use `getStyles()` to get captured styles in the form of a `<style>` element read
|
||||||
Use this piece of code somewhere in your server-side bundle:
|
Use this piece of code somewhere in your server-side bundle:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import universal from 'simple-universal-style-loader/universal';
|
import universal from 'newer-universal-style-loader/universal';
|
||||||
|
|
||||||
const html = universal.getStyles();
|
const html = universal.getStyles();
|
||||||
```
|
```
|
||||||
|
@ -125,8 +125,8 @@ Also contains code authored by:
|
||||||
|
|
||||||
MIT
|
MIT
|
||||||
|
|
||||||
[npm]: https://img.shields.io/npm/v/simple-universal-style-loader.svg
|
[npm]: https://img.shields.io/npm/v/newer-universal-style-loader.svg
|
||||||
[npm-url]: https://npmjs.com/package/simple-universal-style-loader
|
[npm-url]: https://npmjs.com/package/newer-universal-style-loader
|
||||||
|
|
||||||
[node]: https://img.shields.io/node/v/simple-universal-style-loader.svg
|
[node]: https://img.shields.io/node/v/newer-universal-style-loader.svg
|
||||||
[node-url]: https://nodejs.org
|
[node-url]: https://nodejs.org
|
||||||
|
|
25
package.json
25
package.json
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "simple-universal-style-loader",
|
"name": "newer-universal-style-loader",
|
||||||
"version": "0.15.0",
|
"version": "0.16.1",
|
||||||
"author": "Tobias Koppers @sokra & Istvan Jano @janoist1",
|
"author": "Vitaliy Filippov",
|
||||||
"description": "style loader module for webpack",
|
"description": "style loader for webpack with SSR support",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"css-loader": "^0.27.3",
|
"css-loader": "^0.27.3",
|
||||||
"file-loader": "^0.10.1",
|
"file-loader": "^0.10.1",
|
||||||
|
@ -14,19 +14,21 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git@github.com:janoist1/simple-universal-style-loader.git"
|
"url": "git@github.com:vitalif/newer-universal-style-loader.git"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loader-utils": "^1.0.2"
|
"loader-utils": "^1.0.2"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/webpack/style-loader/issues"
|
"url": "https://github.com/vitalif/newer-universal-style-loader/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/webpack/style-loader",
|
"homepage": "https://github.com/vitalif/newer-universal-style-loader",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"release": "yarn run standard-version",
|
||||||
|
"test": "mocha",
|
||||||
|
"travis:test": "yarn run test"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"universal",
|
"universal",
|
||||||
|
@ -36,10 +38,5 @@
|
||||||
"style",
|
"style",
|
||||||
"loader",
|
"loader",
|
||||||
"webpack"
|
"webpack"
|
||||||
],
|
]
|
||||||
"scripts": {
|
|
||||||
"release": "yarn run standard-version",
|
|
||||||
"test": "mocha",
|
|
||||||
"travis:test": "yarn run test"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue