2.0.2 • Published 6 years ago

style-url-webpack v2.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Webpack loader

Style Url

Replace object url to string css

Spoiler Process performed with node-sass and postcss using the plugins autoprefixer and postcss-preset-env

Example

.main {
	color: red;

	&.top {
		color: blue;
	}
}
From
{
styleUrl: './index.scss'
}
To
{
styleUrl: `.main{color:red}.main.top{color:blue}`
}

webpack

install: npm i -D style-url-webpack

{
	test: /\.js$/,
	loader:  'style-url-webpack',
	exclude: ['node_modules'],
	include: [path.resolve(__dirname, 'src')]
},