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生成的供應商檔案)