File: //opt/code/node_modules/vue-style-loader/package.json
{
"name": "vue-style-loader",
"version": "3.1.2",
"author": {
"name": "Evan You"
},
"description": "Vue.js style loader module for webpack",
"repository": {
"type": "git",
"url": "git@github.com:vuejs/vue-style-loader.git"
},
"scripts": {
"test": "jest"
},
"license": "MIT",
"dependencies": {
"hash-sum": "^1.0.2",
"loader-utils": "^1.0.2"
},
"devDependencies": {
"jest": "^18.1.0"
},
"readme": "# vue-style-loader [](https://circleci.com/gh/vuejs/vue-loader/tree/master) [](https://www.npmjs.com/package/vue-style-loader)\r\n\r\nThis is a fork based on [style-loader](https://github.com/webpack/style-loader). Similar to `style-loader`, you can chain it after `css-loader` to dynamically inject CSS into the document as style tags. However, since this is included as a dependency and used by default in `vue-loader`, in most cases you don't need to configure this loader yourself.\r\n\r\n## Options\r\n\r\n- **manualInject** (3.1.0+):\r\n\r\n Type: `boolean`. When importing the style from a non-vue-file, by default the style is injected as a side effect of the import. When `manualInject` is true, the imported style object exposes a `__inject__` method, which can then be called manually at appropriate timing. If called on the server, the method expects one argument which is the `ssrContext` to attach styles to.\r\n\r\n ``` js\r\n import styles from 'styles.scss'\r\n\r\n export default {\r\n beforeCreate() { // or create a mixin for this purpose\r\n if(styles.__inject__) {\r\n styles.__inject__(this.$ssrContext)\r\n }\r\n }\r\n\r\n render() {\r\n return <div class={styles.heading}>Hello World</div>\r\n }\r\n }\r\n ```\r\n\r\n Note this behavior is enabled automatically when `vue-style-loader` is used on styles imported within a `*.vue` file. The option is only exposed for advanced usage.\r\n\r\n- **ssrId** (3.1.0+):\r\n\r\n Type: `boolean`. Add `data-vue-ssr-id` attribute to injected `<style>` tags even when not in Node.js. This can be used with pre-rendering (instead of SSR) to avoid duplicate style injection on hydration.\r\n\r\n## Differences from `style-loader`\r\n\r\n### Server-Side Rendering Support\r\n\r\nWhen bundling with `target: 'node'`, the styles in all rendered components are collected and exposed on the Vue render context object as `context.styles`, which you can simply inline into your markup's `<head>`. If you are building a Vue SSR app, you probably should use this loader for CSS imported from JavaScript files too.\r\n\r\n### Misc\r\n\r\n- Does not support url mode and reference counting mode. Also removed `singleton` and `insertAt` query options. It always automatically pick the style insertion mechanism that makes most sense. If you need these capabilities you should probably use the original `style-loader` instead.\r\n\r\n- Fixed the issue that root-relative URLs are interpreted against chrome:// urls and make source map URLs work for injected `<style>` tags in Chrome.\r\n\r\n## License\r\n\r\nMIT\r\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/vuejs/vue-style-loader/issues"
},
"_id": "vue-style-loader@3.1.2",
"dist": {
"shasum": "2944a9eaeb115577e2b025da8f6dda626b2577b4"
},
"_from": "vue-style-loader@^3.0.1",
"_resolved": "http://registry.npmjs.org/vue-style-loader/-/vue-style-loader-3.1.2.tgz"
}