-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Hot Loader 3.0 beta demo #61
Closed
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
c423415
React Hot Loader 3.0 demo
gaearon 5d5175b
Use Babel
gaearon afa4aee
Bump version!
gaearon 691fe11
Bump version
gaearon 7f8903b
Bump the version
gaearon b52c727
Bump to 3.0.0-beta.0
gaearon f134ff3
Bump version
gaearon febf956
changed the regex expression to handle .jsx files (#83)
gfantom dfeb37b
Use webpack middleware
bradleyboy f764530
Add express, remove webpack dev server
bradleyboy 5c76efd
Formatting
bradleyboy 372080f
update dependencies and add yarn.lock
calesce a26a653
add OccurrenceOrder and NoErrors webpack plugins
calesce 9089b6b
use cheap-module-eval-source-map option for source maps
calesce 9609a8e
use cheap-module-source-map
calesce 437dc6a
Updated dependencies
petertrotman 314c024
Updated .babelrc and webpack.config.js
petertrotman 6811627
Updated
petertrotman 19d3594
Resolved inconsistencies with webpack's guide setup and original boil…
petertrotman 59281e4
Readded yarn.lock file with updated dependencies
petertrotman abe4763
Updated README with citation to webpack guide and removed reference t…
petertrotman c78530f
removed .jshintrc
calesce 26938f2
update license and fix some formatting
calesce 43f80ee
Readded eslint and updated yarn.lock
petertrotman d6891f2
Fixed missing eslint dependency and updated yarn.lock file
petertrotman 92cb506
Merge branch 'next' into next
calesce 8a05c0d
Merge pull request #111 from petertrotman/next
calesce 949277a
document known WebStorm file-watching issue
calesce 677a4d6
Ensure initial render
petertrotman a2d489d
Add basic build script
cookpete 530fb8f
update yarn.lock
calesce 8ebffda
update README
vikr01 4e51cf7
Merge pull request #141 from vikr01/next
theKashey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
var path = require('path'); | ||
var webpack = require('webpack'); | ||
|
||
module.exports = { | ||
entry: './src/index.js', | ||
|
||
output: { | ||
filename: 'static/bundle.js', | ||
path: path.resolve(__dirname, 'dist'), | ||
publicPath: '/' | ||
}, | ||
|
||
devtool: 'source-map', | ||
|
||
module: { | ||
rules: [ | ||
{ | ||
test: /\.jsx?$/, | ||
use: [ | ||
'babel-loader' | ||
], | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}, | ||
|
||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
sourceMap: true, | ||
comments: false | ||
}) | ||
] | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant since
webpack -p
will process output via uglify without the plugin configured.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or we can use https://github.com/webpack-contrib/terser-webpack-plugin