style-url-webpack-as-string
v1.2.0
Published
Downloads
4
Readme
Webpack loader
Style Url
Replace object url to require
From
{
styleUrl: './index.css'
}
To
{
styleUrl: import './index.css'
}
webpack
install: npm i -D style-url-webpack-as-string
{
test: /\.s?css$/,
loader: 'style-url-webpack-as-string',
exclude: /node_modules'/,
include: [path.resolve(__dirname, 'src')]
},