1
0
Fork 0
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:
Tomek 2018-07-24 19:11:21 +02:00 committed by Tim Neutkens
parent 6bd24fd9e2
commit d1fbcfe5de
3 changed files with 3 additions and 13 deletions

View file

@ -1,12 +0,0 @@
{
"presets": ["next/babel"],
"plugins": [
[
"transform-assets-import-to-string",
{
"baseDir": "static",
"baseUri": "/"
}
]
]
}

View file

@ -0,0 +1,2 @@
const withImages = require('next-images')
module.exports = withImages()

View file

@ -7,8 +7,8 @@
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {
"babel-plugin-transform-assets-import-to-string": "^1.0.1",
"next": "latest", "next": "latest",
"next-images": "0.10.5",
"react": "^16.0.0", "react": "^16.0.0",
"react-dom": "^16.0.0" "react-dom": "^16.0.0"
}, },