Last active
June 1, 2016 14:59
-
-
Save reharik/4f4ab8c9885a945df299f59e4fbd9294 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
. | |
├── example | |
│ ├── components | |
│ │ ├── App.js | |
│ │ └── DevTools.js | |
│ ├── reducers | |
│ │ └── index.js | |
│ ├── store | |
│ │ └── configureStore.js | |
│ ├── index.js | |
│ └── index.tmpl.html | |
├── src | |
│ ├── fonts | |
│ │ ├── Proxima Nova Light-webfont.eot | |
│ │ ├── Proxima Nova Light-webfont.svg | |
│ │ ├── Proxima Nova Light-webfont.ttf | |
│ │ ├── Proxima Nova Light-webfont.woff | |
│ │ ├── Proxima Nova Light-webfont.woff2 | |
│ │ ├── Proxima Nova Reg-webfont.eot | |
│ │ ├── Proxima Nova Reg-webfont.svg | |
│ │ ├── Proxima Nova Reg-webfont.ttf | |
│ │ ├── Proxima Nova Reg-webfont.woff | |
│ │ ├── Proxima Nova Reg-webfont.woff2 | |
│ │ ├── Proxima Nova Sbold-webfont.eot | |
│ │ ├── Proxima Nova Sbold-webfont.svg | |
│ │ ├── Proxima Nova Sbold-webfont.ttf | |
│ │ ├── Proxima Nova Sbold-webfont.woff | |
│ │ └── Proxima Nova Sbold-webfont.woff2 | |
│ ├── js | |
│ │ ├── actions | |
│ │ │ └── calendarActions.js | |
│ │ ├── components | |
│ │ │ ├── Calendar.js | |
│ │ │ ├── Day.js | |
│ │ │ ├── DaysOfMonth.js | |
│ │ │ ├── DisplayHeader.js | |
│ │ │ ├── Header.js | |
│ │ │ ├── Holiday.js | |
│ │ │ ├── LoginPage.js | |
│ │ │ ├── Month.js | |
│ │ │ ├── Sidebar.js | |
│ │ │ ├── TaskCard.js | |
│ │ │ ├── TaskList.js | |
│ │ │ ├── TaskSearch.js | |
│ │ │ ├── Tasks.js | |
│ │ │ ├── Week.js | |
│ │ │ └── Year.js | |
│ │ ├── constants | |
│ │ │ └── actionConstants.js | |
│ │ ├── containers | |
│ │ │ ├── CalendarContainer.js | |
│ │ │ ├── DayContainer.js | |
│ │ │ ├── DevTools.js | |
│ │ │ ├── HeaderContainer.js | |
│ │ │ ├── MonthContainer.js | |
│ │ │ └── WeekContainer.js | |
│ │ ├── reducers | |
│ │ │ ├── index.js | |
│ │ │ └── viewReducer.js | |
│ │ └── utils | |
│ │ ├── calendarUtils.js | |
│ │ └── WebAPIUtils.js | |
│ └── sass | |
│ ├── app.css | |
│ ├── app.scss | |
│ ├── external-app.css | |
│ └── material.min.css | |
├── package.json | |
└── webpack.config.js | |
14 directories, 54 files |
This file contains hidden or 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
var path = require('path'); | |
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var node_modules = __dirname + '/node_modules'; | |
const config = { | |
// Gives you sourcemaps without slowing down rebundling | |
devtool : 'cheap-module-eval-source-map', | |
resolve: { alias: {} }, | |
entry : path.join(__dirname, 'example/index.js'), | |
output : { | |
path : path.join(__dirname, '/dist/'), | |
filename : 'bundle.js', | |
publicPath: '/' | |
}, | |
module : { | |
noParse:[], | |
loaders: [ | |
{ test : /\.jsx?$/, exclude: /node_modules/, loader : 'babel-loader' }, | |
{ test: /\.css$/, loader: 'style-loader!css-loader?sourceMap' }, | |
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" }, | |
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" }, | |
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" }, | |
{ test: /\.png$/, loader: "url-loader", query: { mimetype: "image/png" } }, | |
{ test: /\.jpg$/, loader: "url-loader", query: { mimetype: "image/jpg" } }, | |
{ test: /\.gif$/, loader: "url-loader", query: { mimetype: "image/gif" } }, | |
{ test: /\.scss$/, loaders: ["style", "css?sourceMap", "sass?sourceMap"] }, | |
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loaders: ['url-loader?limit=10000&mimetype=application/font-woff' ] } | |
] | |
}, | |
plugins: [ | |
new HtmlWebpackPlugin({ | |
template: __dirname + "/example/index.tmpl.html" | |
}), | |
new webpack.optimize.OccurenceOrderPlugin(), | |
new webpack.HotModuleReplacementPlugin(), | |
new webpack.NoErrorsPlugin() | |
], | |
devServer: { | |
contentBase : "./dist", | |
colors : true, | |
historyApiFallback: true, | |
inline : true, | |
hot : true | |
}, | |
sassLoader: { | |
includePaths: [path.resolve(__dirname, "./sass")] | |
} | |
}; | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment