Skip to content

Commit 3964b02

Browse files
committed
update
1 parent 29d430d commit 3964b02

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This is a React/Redux single page app that can be used as boilerplate for any starting project, or simply for educational purposes.
44

5+
**NOTE: This boilerplate is years old (which in the frontend world is like decades old), and at this point is outdated. Webpack, Babel, React-Router, etc. all need to be upgraded (unfortunately not as trivial as changing versions). Thus I do not recommend using this boilerplate beyond simply being a reference.**
6+
57
### Features:
68

79
* Universal/Isomorphic rendering

webpack/development/dev.config.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ var webpack = require('webpack')
33
const ROOT = '../..'
44
const PORT = require(ROOT + '/config/serverConfig.json').PORT
55

6-
require('../symlinks')()
7-
86
var configVars = {
97
NODE_ENV: JSON.stringify('development'),
108
BROWSER: JSON.stringify(true)
@@ -24,6 +22,13 @@ module.exports = {
2422
filename: 'js/main.bundle.js',
2523
publicPath: `http://localhost:${PORT}/`
2624
},
25+
resolve: {
26+
alias: {
27+
Src: path.join(__dirname, ROOT + '/src'),
28+
Config: path.join(__dirname, ROOT + '/config'),
29+
},
30+
extensions: ['.js', '.jsx']
31+
},
2732
plugins: [
2833
new webpack.LoaderOptionsPlugin({
2934
debug: true,

webpack/production/prod.config.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@ var WebpackMd5Hash = require('webpack-md5-hash') //required for ChunkManifestPlu
66
var ManifestPlugin = require('webpack-manifest-plugin')
77
const ROOT = '../..'
88

9-
require('../symlinks')()
10-
11-
const VERSION = require(ROOT + '/package.json').version || '0.0.0'
9+
// const VERSION = require(ROOT + '/package.json').version || '0.0.0'
1210

1311
var configVars = {
1412
NODE_ENV: JSON.stringify('production'),
1513
BROWSER: JSON.stringify(true)
1614
}
1715

1816
const config = require(ROOT + '/config/config.js')['production']
19-
const { STATIC_URL } = config
17+
// const { STATIC_URL } = config
2018

2119
module.exports = {
2220
context: path.resolve(__dirname, ROOT),
@@ -41,6 +39,13 @@ module.exports = {
4139
filename: 'js/[name]_[chunkhash]_bundle.js',
4240
chunkFilename: 'js/[name]_[chunkhash]_chunk.js'
4341
},
42+
resolve: {
43+
alias: {
44+
Src: path.join(__dirname, ROOT + '/src'),
45+
Config: path.join(__dirname, ROOT + '/config'),
46+
},
47+
extensions: ['.js', '.jsx']
48+
},
4449
plugins: [
4550
new webpack.LoaderOptionsPlugin({
4651
minimize: true,

webpack/symlinks.js

-17
This file was deleted.

0 commit comments

Comments
 (0)