【发布时间】:2018-01-28 22:16:01
【问题描述】:
我有一个自定义手写笔包托管在一个私人 github 存储库中,我将其包含在我的包清单中。在npm install 之后,它现在位于我的node_modules 目录中,其目录结构类似于:
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 和 stylus loader 2.5.1,我如何设置它以能够导入和使用自定义包中的所有内容?我的 webpack 配置文件中是否有可以加载文件的内容?我是否在我的基本 .styl 文件中包含某种 @require 'my-custom-package'?我的条目App.js 文件中有import 'my-custom-package'?
【问题讨论】:
标签: webpack config node-modules stylus