vuejs / vue-style-loader

💅 vue style loader module for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can't get the css string

cfour-hi opened this issue · comments

commented

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