1.1.2 • Published 6 years ago
@xiaobaowei/js-to-styles-var-loader v1.1.2
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
requiresentence.
previous:
require('vars.js');current:
@import 'vars.js';- support resolve
node_modulesand webpackresolve.aliasdirectories. Just prepend them with a~.
@import '~themes/vars.js';- optimize
getPreprocessorType. Use webpackresourcePathto analyze resource type, ignore resource query part.
previous, it not support:
import 'style.less?local';but now, it can support above.