From 5464138af95e9b8bdfe4556276ff2f59135eb60a Mon Sep 17 00:00:00 2001 From: y00289024 Date: Thu, 14 Mar 2019 16:56:53 +0800 Subject: [PATCH] feat: add custom attribute to --- README.md | 6 +++++- lib/addStylesClient.js | 27 ++++++++++++++++++--------- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e6b41d32..2adede8c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This is a fork based on [style-loader](https://github.com/webpack/style-loader). 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. - ``` js + ```js import styles from 'styles.scss' export default { @@ -30,6 +30,10 @@ This is a fork based on [style-loader](https://github.com/webpack/style-loader). Type: `boolean`. Add `data-vue-ssr-id` attribute to injected `