提交 d1fbcfe5 编写于 作者: T Tomek 提交者: Tim Neutkens

update with-asset-import example (#4830)

Changes:
- use `next-images` plugin for handling static files import
上级 6bd24fd9
{
"presets": ["next/babel"],
"plugins": [
[
"transform-assets-import-to-string",
{
"baseDir": "static",
"baseUri": "/"
}
]
]
}
const withImages = require('next-images')
module.exports = withImages()
......@@ -7,8 +7,8 @@
"start": "next start"
},
"dependencies": {
"babel-plugin-transform-assets-import-to-string": "^1.0.1",
"next": "latest",
"next-images": "0.10.5",
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册