mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
update with-asset-import example (#4830)
Changes: - use `next-images` plugin for handling static files import
This commit is contained in:
parent
6bd24fd9e2
commit
d1fbcfe5de
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"presets": ["next/babel"],
|
||||
"plugins": [
|
||||
[
|
||||
"transform-assets-import-to-string",
|
||||
{
|
||||
"baseDir": "static",
|
||||
"baseUri": "/"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
2
examples/with-asset-imports/next.config.js
Normal file
2
examples/with-asset-imports/next.config.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
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"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue