Closed DiamondYuan closed 5 years ago
ERROR in ./node_modules/hypermd/theme/hypermd-image-spin.gif 1:6
Module parse failed: Unexpected character '' (1:6)
You may need an appropriate loader to handle this file type.
ERROR in ./node_modules/hypermd/theme/hypermd-image-error.png 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
ERROR in ./node_modules/hypermd/theme/hypermd-image-link.png 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
可以了。加了一个css loader 和 url loadr
{
include: /hypermd|codemirror/,
test: [/\.css$/],
use: [
{
loader: 'style-loader'
},
{
loader: 'css-loader'
}
]
}
{
test: /\.(png|jpg|gif)$/,
loader: 'url-loader?limit=8192&name=./static/img/[hash].[ext]',
},
一共四张图 用 base64 吧。
感谢指出。等过后在文档里加上说明
对了。切换编辑模式是不是文档里也没有。我看 demo 源码才发现的。
研究了几个小时。整个项目真不错。 感谢一下。
在react里引入
webpack