Sha256: 378915989a007b04182d48f8818573ed98037870af0f3288aa8db811337cc6d2
Contents?: true
Size: 902 Bytes
Versions: 3
Compression:
Stored size: 902 Bytes
Contents
// Webpack configuration for server bundle const webpack = require('webpack'); const path = require('path'); const devBuild = process.env.NODE_ENV !== 'production'; const nodeEnv = devBuild ? 'development' : 'production'; module.exports = { // the project dir context: __dirname, entry: [ 'babel-polyfill', './app/bundles/HelloWorld/startup/serverRegistration' ], output: { filename: 'server-bundle.js', path: '../app/assets/javascripts/generated', }, resolve: { extensions: ['', '.webpack.js', '.web.js', '.js', '.jsx', 'config.js'], alias: { lib: path.join(process.cwd(), 'app', 'lib'), }, }, plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify('production'), }, }), ], module: { loaders: [ {test: /\.jsx?$/, loader: 'babel-loader', exclude: /node_modules/}, ], }, };
Version data entries
3 entries across 3 versions & 1 rubygems