Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
d1fbcfe5
Commit
d1fbcfe5
authored
Jul 24, 2018
by
Tomek
Committed by
Tim Neutkens
Jul 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update with-asset-import example (#4830)
Changes: - use `next-images` plugin for handling static files import
parent
6bd24fd9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
13 deletions
+3
-13
.babelrc
examples/with-asset-imports/.babelrc
+0
-12
next.config.js
examples/with-asset-imports/next.config.js
+2
-0
package.json
examples/with-asset-imports/package.json
+1
-1
No files found.
examples/with-asset-imports/.babelrc
deleted
100644 → 0
View file @
6bd24fd9
{
"presets": ["next/babel"],
"plugins": [
[
"transform-assets-import-to-string",
{
"baseDir": "static",
"baseUri": "/"
}
]
]
}
examples/with-asset-imports/next.config.js
0 → 100644
View file @
d1fbcfe5
const
withImages
=
require
(
'next-images'
)
module
.
exports
=
withImages
()
examples/with-asset-imports/package.json
View file @
d1fbcfe5
...
@@ -7,8 +7,8 @@
...
@@ -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"
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment