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
4ad5e2e0
Commit
4ad5e2e0
authored
Mar 13, 2017
by
Luke Edwards
Committed by
Tim Neutkens
Mar 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Examples: Update Inferno & Preact (#1407)
* clean & bump inferno & preact pkgs * reenable UglifyJS for preact
parent
624cab99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
20 deletions
+8
-20
package.json
examples/using-inferno/package.json
+4
-6
next.config.js
examples/using-preact/next.config.js
+0
-4
package.json
examples/using-preact/package.json
+4
-10
No files found.
examples/using-inferno/package.json
View file @
4ad5e2e0
...
@@ -7,13 +7,11 @@
...
@@ -7,13 +7,11 @@
"start"
:
"NODE_ENV=production node server.js"
"start"
:
"NODE_ENV=production node server.js"
},
},
"dependencies"
:
{
"dependencies"
:
{
"inferno"
:
"^1.
0.7
"
,
"inferno"
:
"^1.
4.0
"
,
"inferno-compat"
:
"^1.
0.7
"
,
"inferno-compat"
:
"^1.
4.0
"
,
"inferno-server"
:
"^1.
3.0-rc.9
"
,
"inferno-server"
:
"^1.
4.0
"
,
"module-alias"
:
"^2.0.0"
,
"module-alias"
:
"^2.0.0"
,
"next"
:
"^2.0.0-beta"
,
"next"
:
"^2.0.0-beta"
"react"
:
"^15.4.2"
,
"react-dom"
:
"^15.4.2"
},
},
"author"
:
""
,
"author"
:
""
,
"license"
:
"MIT"
"license"
:
"MIT"
...
...
examples/using-preact/next.config.js
View file @
4ad5e2e0
...
@@ -11,10 +11,6 @@ module.exports = {
...
@@ -11,10 +11,6 @@ module.exports = {
'react-dom'
:
'preact-compat/dist/preact-compat'
'react-dom'
:
'preact-compat/dist/preact-compat'
}
}
// Disable uglify. This has been fixed in https://github.com/developit/preact-compat/issues/155.
// Can be removed once there is a new preact-compat release.
config
.
plugins
=
config
.
plugins
.
filter
((
plugin
)
=>
(
plugin
.
constructor
.
name
!==
'UglifyJsPlugin'
))
return
config
return
config
}
}
}
}
examples/using-preact/package.json
View file @
4ad5e2e0
{
{
"name"
:
"
hello-world
"
,
"name"
:
"
using-preact
"
,
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"node server.js"
,
"dev"
:
"node server.js"
,
...
@@ -9,15 +9,9 @@
...
@@ -9,15 +9,9 @@
"dependencies"
:
{
"dependencies"
:
{
"module-alias"
:
"^2.0.0"
,
"module-alias"
:
"^2.0.0"
,
"next"
:
"^2.0.0-beta"
,
"next"
:
"^2.0.0-beta"
,
"preact"
:
"^7.1.0"
,
"preact"
:
"^7.2.0"
,
"preact-compat"
:
"^3.9.4"
,
"preact-compat"
:
"^3.14.0"
"react"
:
"^15.4.2"
,
"react-dom"
:
"^15.4.2"
},
},
"author"
:
""
,
"author"
:
""
,
"license"
:
"ISC"
,
"license"
:
"ISC"
"devDependencies"
:
{
"babel-preset-es2015"
:
"^6.18.0"
,
"babel-preset-react"
:
"^6.16.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