-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9b42e4
commit bc3bce6
Showing
18 changed files
with
456 additions
and
441 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* */ |
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,5 +1,4 @@ | ||
import { combineReducers } from 'redux'; | ||
import {combineReducers} from "redux"; | ||
|
||
const rootReducer = combineReducers({ | ||
}); | ||
export default rootReducer; | ||
const rootReducer = combineReducers({}); | ||
export default rootReducer; |
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,6 +1,7 @@ | ||
import { applyMiddleware, createStore } from 'redux'; | ||
import thunk from 'redux-thunk'; | ||
import {applyMiddleware, createStore} from "redux"; | ||
import thunk from "redux-thunk"; | ||
|
||
import rootReducer from "../reducers/index"; | ||
|
||
const store = createStore(rootReducer, applyMiddleware(thunk)); | ||
export default store; | ||
export default store; |
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,71 +1,71 @@ | ||
const path = require('path') | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin') | ||
const path = require("path"); | ||
const HtmlWebpackPlugin = require("html-webpack-plugin"); | ||
const HardSourceWebpackPlugin = require("hard-source-webpack-plugin"); | ||
|
||
const CURRENT_WORKING_DIR = process.cwd() | ||
const CURRENT_WORKING_DIR = process.cwd(); | ||
|
||
module.exports = (env, argv) => { | ||
const config = { | ||
context: path.resolve(CURRENT_WORKING_DIR, 'client'), | ||
entry: { | ||
main: './index.js' | ||
}, | ||
output: { | ||
filename: '[name].bundle.js', | ||
chunkFilename: '[name].chunk.js', | ||
path: path.resolve(CURRENT_WORKING_DIR, 'dist'), | ||
publicPath: '/', | ||
pathinfo: false | ||
}, | ||
const config = { | ||
context: path.resolve(CURRENT_WORKING_DIR, "client"), | ||
entry: { | ||
main: "./index.js", | ||
}, | ||
output: { | ||
filename: "[name].bundle.js", | ||
chunkFilename: "[name].chunk.js", | ||
path: path.resolve(CURRENT_WORKING_DIR, "dist"), | ||
publicPath: "/", | ||
pathinfo: false, | ||
}, | ||
|
||
devtool: | ||
argv.mode === 'development' ? 'cheap-module-source-map' : 'source-map', | ||
devtool: | ||
argv.mode === "development" ? "cheap-module-source-map" : "source-map", | ||
|
||
resolve: { | ||
extensions: ['*', '.js', '.jsx'] | ||
}, | ||
resolve: { | ||
extensions: ["*", ".js", ".jsx"], | ||
}, | ||
|
||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(js|jsx)$/, | ||
exclude: /node_modules/, | ||
use: ['babel-loader'] | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: ['style-loader', 'css-loader'] | ||
} | ||
] | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(js|jsx)$/, | ||
exclude: /node_modules/, | ||
use: ["babel-loader"], | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: ["style-loader", "css-loader"], | ||
}, | ||
], | ||
}, | ||
|
||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
filename: 'index.html', | ||
template: path.resolve(CURRENT_WORKING_DIR, 'public/index.html') | ||
}) | ||
], | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
filename: "index.html", | ||
template: path.resolve(CURRENT_WORKING_DIR, "public/index.html"), | ||
}), | ||
], | ||
|
||
devServer: { | ||
stats: { | ||
colors: true | ||
}, | ||
publicPath: '/', | ||
compress: true, | ||
overlay: { | ||
warnings: true, | ||
errors: true | ||
}, | ||
progress: true, | ||
stats: 'errors-only', | ||
open: true, | ||
contentBase: path.join(CURRENT_WORKING_DIR, 'public'), | ||
watchContentBase: true, | ||
watchOptions: { | ||
ignored: /node_modules/ | ||
}, | ||
historyApiFallback: true | ||
}, | ||
} | ||
return config | ||
} | ||
devServer: { | ||
stats: { | ||
colors: true, | ||
}, | ||
publicPath: "/", | ||
compress: true, | ||
overlay: { | ||
warnings: true, | ||
errors: true, | ||
}, | ||
progress: true, | ||
stats: "errors-only", | ||
open: true, | ||
contentBase: path.join(CURRENT_WORKING_DIR, "public"), | ||
watchContentBase: true, | ||
watchOptions: { | ||
ignored: /node_modules/, | ||
}, | ||
historyApiFallback: true, | ||
}, | ||
}; | ||
return config; | ||
}; |
Oops, something went wrong.