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 Pages = require('./client/pages');
|
||||||
|
const Server = require('./server');
|
||||||
|
const App = require('./client/app.js');
|
||||||
const Components = require('./client/components');
|
const Components = require('./client/components');
|
||||||
const Containers = require('./client/containers');
|
const Containers = require('./client/containers');
|
||||||
|
|
||||||
const exports = {
|
const exports = {
|
||||||
Server,
|
Server,
|
||||||
|
App,
|
||||||
|
Reducer,
|
||||||
|
rootSaga,
|
||||||
|
GAListener,
|
||||||
Pages,
|
Pages,
|
||||||
Components,
|
Components,
|
||||||
Containers,
|
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');
|
// const clientBaseConfig = require('./webpack.client.common.js');
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const packageBaseConfig = require('./webpack.package.common.js');
|
const packageBaseConfig = require('./webpack.speech.common.js');
|
||||||
const clientBaseConfig = require('./webpack.client.common.js');
|
// const clientBaseConfig = require('./webpack.client.common.js');
|
||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
|
|
||||||
const devBuildConfig = {
|
const devBuildConfig = {
|
||||||
|
@ -9,5 +9,5 @@ const devBuildConfig = {
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
merge(packageBaseConfig, devBuildConfig),
|
merge(packageBaseConfig, devBuildConfig),
|
||||||
merge(clientBaseConfig, devBuildConfig),
|
// merge(clientBaseConfig, devBuildConfig),
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||||
const packageBaseConfig = require('./webpack.package.common.js');
|
const packageBaseConfig = require('./webpack.speech.common.js');
|
||||||
const clientBaseConfig = require('./webpack.client.common.js');
|
// const clientBaseConfig = require('./webpack.client.common.js');
|
||||||
|
|
||||||
const productionBuildConfig = {
|
const productionBuildConfig = {
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
|
@ -18,5 +18,5 @@ const productionBuildConfig = {
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
merge(packageBaseConfig, productionBuildConfig),
|
merge(packageBaseConfig, productionBuildConfig),
|
||||||
merge(clientBaseConfig, productionBuildConfig),
|
// merge(clientBaseConfig, productionBuildConfig),
|
||||||
];
|
];
|
||||||
|
|
|
@ -10,11 +10,11 @@ module.exports = {
|
||||||
__dirname: false,
|
__dirname: false,
|
||||||
},
|
},
|
||||||
externals: [nodeExternals()],
|
externals: [nodeExternals()],
|
||||||
entry : ['babel-polyfill', 'whatwg-fetch', './speechPackage.js'],
|
entry : ['babel-polyfill', 'whatwg-fetch', './speech.js'],
|
||||||
output : {
|
output : {
|
||||||
path : Path.join(__dirname, 'exports/'),
|
path : Path.join(__dirname, '/'),
|
||||||
publicPath : 'exports/',
|
publicPath : '/',
|
||||||
filename : 'nodeBundle.js',
|
filename : 'index.js',
|
||||||
library : '',
|
library : '',
|
||||||
libraryTarget: 'commonjs-module',
|
libraryTarget: 'commonjs-module',
|
||||||
},
|
},
|
Loading…
Reference in a new issue