0
我试图在我的js文件中使用yarn和webpack导入ui-select,而不是像下面那样在我的模块中导入它。无法在angularjs和ES6中导入ui-select
import ngSanitize from 'angular-sanitize';
import uiselect from 'ui-select';
import 'ui-select/dist/select.css';
export default angular.module('app.module', [
/** ... **/
ngSanitize,
'ui.select'
/** ... **/
])
但是当我检查我的生成的css文件,我可以看到CSS正确但进口不是JS。(有没有问题,我的WebPack的配置,我可以看到ngSanitize JS CODEON生成的供应商档案)