【发布时间】:2017-10-06 06:48:58
【问题描述】:
我正在尝试使用 yarn 和 webpack 在我的 js 文件中导入 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 代码)
【问题讨论】:
标签: javascript angularjs webpack ui-select