0
我有一個自定義的手寫筆包在託管在私人github回購,我包括在我的包清單。一個npm install
後,它現在在我的node_modules
目錄中的目錄結構是這樣的:使用webpack的自定義手寫筆包?
node_modules
|
----my-custom-package
|
----package.json
webpack.config.js
src/
|
----index.js (which just imports css/index.styl)
css/
|
----index.styl
...bunch of other .styl files
使用的WebPack 1.13和手寫筆裝載機2.5.1,我該如何將它設置成能夠導入和使用我的一切定製包?我的webpack配置文件中是否有可以加載文件的東西?我是否在我的.styl文件中包含某種@require 'my-custom-package'
?在我的輸入App.js
文件中有import 'my-custom-package'
?