@xiaobaowei/js-to-styles-var-loader

1.1.2 • Public • Published

This repo is forked from tompascall/js-to-styles-var-loader and change some contents to meet my need.

The changes are as follows:

  • change the require sentence.

previous:

require('vars.js');

current:

@import 'vars.js';
  • support resolve node_modules and webpack resolve.alias directories. Just prepend them with a ~.
@import '~themes/vars.js';
  • optimize getPreprocessorType . Use webpack resourcePath to analyze resource type, ignore resource query part.

previous, it not support:

import 'style.less?local';

but now, it can support above.

Package Sidebar

Install

npm i @xiaobaowei/js-to-styles-var-loader

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

27.9 kB

Total Files

29

Last publish

Collaborators

  • xiaobaowei