【发布时间】:2019-09-02 13:13:29
【问题描述】:
我正在使用 react-app-rewired 并想使用 .styl 作为 css。 我尝试添加一些插件以便在我的组件中使用 .styl 的问题。
文件名:config-overrides.js
var stylus_plugin = require('stylus_plugin');
module.exports = function override(config, env) {
config.plugins = [
new stylusLoader.OptionsPlugin({
default: {
use: [stylus_plugin()],
},
}),
我得到的错误
错误:找不到模块“stylus_plugin”
【问题讨论】:
标签: reactjs webpack html-webpack-plugin stylus-loader