-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove babel and build:node from package.json * Remove include path in babel-loader * Add placeholder to fix fetching data failure if DB does not exist * Modify webpack prod config to compile server-side node - Specify all node_modules files (except binaries) as externals. This means they will be specified as dependencies of the resulting bundle. Read more https://webpack.github.io/docs/configuration.html#externals - Change entry point for server to be server/index.js - Change output path to be /compiled - Remove postcss config - Remove css extraction - Use css-loader/locals in the prerendering bundle to only export identifier mappings webpack-contrib/css-loader#59 (comment) -⚠️ we are keeping context the same so that our css-loader classnames generated remain the same! * Start app with compiled/server.js * Require server.jsx in index.js * Modify express static path to work with webpack * Remove build:prod from scripts in package.json * Change mongo db files to work with webpack - Add index in mongo/models to be used in connect - Remove unneeded default export - Replace fs.readFileSync with a loadModels() function to load the schema * Change sequelize db files to work with webpack * Change none db files to work with webpack * Remove unneeded default export * Modify webpack dev to compile server-side node - Remove babel-node command from package.json - Remove unnecessary files in nodemon.json - Set node_modules as externals in result bundle * Fix webpack dev client to use postcss-loader * Extract externals into common.config - Refactored different paths into output object * Fix incorrect css-loader query parameters - Add (s) to modules - To work with postcss, we need to add importLoaders https://github.com/postcss/postcss-loader#css-modules * Extract postCSSConfig to common.config * Add command line config to webpack in package.json * Bump postcss-loader and postcss-import versions * Add sourcemap support to server-side webpack * Re-add postCSS config into our server-side bundles to prevent warnings * Remove unneeded postcss-simple-vars dependency * Bump postcss-cssnext, postcss-reporter versions - Replace deprecated clearMessages option with clearReportedMessages https://github.com/postcss/postcss-reporter/blob/master/CHANGELOG.md#300 * 2.1.0 * Update Changelog with webpack on server
- Loading branch information
1 parent
026df47
commit 3191b03
Showing
27 changed files
with
173 additions
and
155 deletions.
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
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
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,5 @@ | ||
export default function loadModels() { | ||
require('./topics'); | ||
require('./user'); | ||
}; | ||
|
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export function connect() {} | ||
const connect = () => {}; | ||
const controllers = () => {}; | ||
const passport = () => {}; | ||
const session = () => {}; | ||
|
||
export default { connect }; | ||
export default { connect, controllers, passport, session }; |
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
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 |
---|---|---|
@@ -1,11 +1,4 @@ | ||
import connect from './connect'; | ||
import controllers from './controllers'; | ||
import passport from './passport'; | ||
export { default as connect } from './connect'; | ||
export { default as controllers } from './controllers'; | ||
export { default as passport } from './passport'; | ||
|
||
export { connect, controllers, passport }; | ||
|
||
export default { | ||
connect, | ||
controllers, | ||
passport | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Models from '../models'; | ||
import { Models } from '../models'; | ||
|
||
const User = Models.User; | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Models from '../models'; | ||
import { Models } from '../models'; | ||
|
||
const User = Models.User; | ||
|
||
|
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
Oops, something went wrong.