vue-style-loader icon indicating copy to clipboard operation
vue-style-loader copied to clipboard

I can't get the css string

Open cfour-hi opened this issue 2 years ago • 0 comments

Do you want to request a feature or report a bug?

feature

What is the current behavior?

import CSS can not get the string.

import cssString from './index.css';
console.log('cssString', cssString, cssString.toString()); // => cssString [object Object] [object Object]

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

If this is a feature request, what is motivation or use case for changing the behavior?

I want to get the css string.

Please mention other relevant information such as your webpack version, Node.js version and Operating System.

OS: macOS Big Sur Node.js: 14.17.1 @vue/cli-service: 4.5.13 webpack: 4.46.0 vue-style-loader: 4.1.3

cfour-hi avatar Sep 17 '21 09:09 cfour-hi