switched back to single package
This commit is contained in:
parent
6c2415c11b
commit
1937945dac
9 changed files with 12561 additions and 59937 deletions
47990
exports/clientBundle.js
47990
exports/clientBundle.js
File diff suppressed because one or more lines are too long
11928
exports/nodeBundle.js
11928
exports/nodeBundle.js
File diff suppressed because one or more lines are too long
12548
index.js
12548
index.js
File diff suppressed because one or more lines are too long
|
@ -1,10 +1,18 @@
|
|||
const Server = require('./server');
|
||||
import Reducer from './client/reducers';
|
||||
import rootSaga from './client/sagas';
|
||||
import GAListener from './client/components/GAListener';
|
||||
const Pages = require('./client/pages');
|
||||
const Server = require('./server');
|
||||
const App = require('./client/app.js');
|
||||
const Components = require('./client/components');
|
||||
const Containers = require('./client/containers');
|
||||
|
||||
const exports = {
|
||||
Server,
|
||||
App,
|
||||
Reducer,
|
||||
rootSaga,
|
||||
GAListener,
|
||||
Pages,
|
||||
Components,
|
||||
Containers,
|
|
@ -1,4 +1,4 @@
|
|||
const packageBaseConfig = require('./webpack.package.common.js');
|
||||
const packageBaseConfig = require('./webpack.speech.common.js');
|
||||
// const clientBaseConfig = require('./webpack.client.common.js');
|
||||
|
||||
module.exports = [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const packageBaseConfig = require('./webpack.package.common.js');
|
||||
const clientBaseConfig = require('./webpack.client.common.js');
|
||||
const packageBaseConfig = require('./webpack.speech.common.js');
|
||||
// const clientBaseConfig = require('./webpack.client.common.js');
|
||||
const merge = require('webpack-merge');
|
||||
|
||||
const devBuildConfig = {
|
||||
|
@ -9,5 +9,5 @@ const devBuildConfig = {
|
|||
|
||||
module.exports = [
|
||||
merge(packageBaseConfig, devBuildConfig),
|
||||
merge(clientBaseConfig, devBuildConfig),
|
||||
// merge(clientBaseConfig, devBuildConfig),
|
||||
];
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
const webpack = require('webpack');
|
||||
const merge = require('webpack-merge');
|
||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||
const packageBaseConfig = require('./webpack.package.common.js');
|
||||
const clientBaseConfig = require('./webpack.client.common.js');
|
||||
const packageBaseConfig = require('./webpack.speech.common.js');
|
||||
// const clientBaseConfig = require('./webpack.client.common.js');
|
||||
|
||||
const productionBuildConfig = {
|
||||
devtool: 'source-map',
|
||||
|
@ -18,5 +18,5 @@ const productionBuildConfig = {
|
|||
|
||||
module.exports = [
|
||||
merge(packageBaseConfig, productionBuildConfig),
|
||||
merge(clientBaseConfig, productionBuildConfig),
|
||||
// merge(clientBaseConfig, productionBuildConfig),
|
||||
];
|
||||
|
|
|
@ -10,11 +10,11 @@ module.exports = {
|
|||
__dirname: false,
|
||||
},
|
||||
externals: [nodeExternals()],
|
||||
entry : ['babel-polyfill', 'whatwg-fetch', './speechPackage.js'],
|
||||
entry : ['babel-polyfill', 'whatwg-fetch', './speech.js'],
|
||||
output : {
|
||||
path : Path.join(__dirname, 'exports/'),
|
||||
publicPath : 'exports/',
|
||||
filename : 'nodeBundle.js',
|
||||
path : Path.join(__dirname, '/'),
|
||||
publicPath : '/',
|
||||
filename : 'index.js',
|
||||
library : '',
|
||||
libraryTarget: 'commonjs-module',
|
||||
},
|
Loading…
Add table
Reference in a new issue