mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-19 06:52:02 +02:00
dual rendering possible using --singles
This commit is contained in:
@@ -3,6 +3,11 @@ var webpack = require('webpack');
|
||||
// Bundle entry point
|
||||
var entry = ['./components/App.jsx'];
|
||||
|
||||
// However, do we want one full page, or single pages with react-router?
|
||||
if(process.argv.indexOf("--singles") !== -1 ) {
|
||||
entry = ['./pages/Routed.jsx'];
|
||||
}
|
||||
|
||||
// Necessary webpack loaders for converting our content:
|
||||
var webpackLoaders = [
|
||||
'babel-loader',
|
||||
@@ -41,7 +46,7 @@ module.exports = {
|
||||
{ test: /\.json$/, loader: "json" },
|
||||
{
|
||||
test: /.jsx?$/,
|
||||
include: /components/,
|
||||
include: /(components|pages)/,
|
||||
loaders: webpackLoaders
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user