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
|
||||
|
||||
```
|
||||
npm install simple-universal-style-loader --save-dev
|
||||
npm install newer-universal-style-loader --save-dev
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -23,7 +23,7 @@ npm install simple-universal-style-loader --save-dev
|
|||
|
||||
### 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).
|
||||
|
||||
|
@ -34,7 +34,7 @@ Example for Webpack 5 with CSS module support:
|
|||
rules: [ {
|
||||
test: /\.css$/,
|
||||
use: [ {
|
||||
loader: "simple-universal-style-loader",
|
||||
loader: "newer-universal-style-loader",
|
||||
options: { singleton: true }
|
||||
}, {
|
||||
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:
|
||||
|
||||
```js
|
||||
import universal from 'simple-universal-style-loader/universal';
|
||||
import universal from 'newer-universal-style-loader/universal';
|
||||
|
||||
const html = universal.getStyles();
|
||||
```
|
||||
|
@ -125,8 +125,8 @@ Also contains code authored by:
|
|||
|
||||
MIT
|
||||
|
||||
[npm]: https://img.shields.io/npm/v/simple-universal-style-loader.svg
|
||||
[npm-url]: https://npmjs.com/package/simple-universal-style-loader
|
||||
[npm]: https://img.shields.io/npm/v/newer-universal-style-loader.svg
|
||||
[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
|
||||
|
|
25
package.json
25
package.json
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "simple-universal-style-loader",
|
||||
"version": "0.15.0",
|
||||
"author": "Tobias Koppers @sokra & Istvan Jano @janoist1",
|
||||
"description": "style loader module for webpack",
|
||||
"name": "newer-universal-style-loader",
|
||||
"version": "0.16.1",
|
||||
"author": "Vitaliy Filippov",
|
||||
"description": "style loader for webpack with SSR support",
|
||||
"devDependencies": {
|
||||
"css-loader": "^0.27.3",
|
||||
"file-loader": "^0.10.1",
|
||||
|
@ -14,19 +14,21 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:janoist1/simple-universal-style-loader.git"
|
||||
"url": "git@github.com:vitalif/newer-universal-style-loader.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"loader-utils": "^1.0.2"
|
||||
},
|
||||
"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",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"release": "yarn run standard-version",
|
||||
"test": "mocha",
|
||||
"travis:test": "yarn run test"
|
||||
},
|
||||
"keywords": [
|
||||
"universal",
|
||||
|
@ -36,10 +38,5 @@
|
|||
"style",
|
||||
"loader",
|
||||
"webpack"
|
||||
],
|
||||
"scripts": {
|
||||
"release": "yarn run standard-version",
|
||||
"test": "mocha",
|
||||
"travis:test": "yarn run test"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue