WebApp, mejorada integración con webpack
This commit is contained in:
parent
158009dc83
commit
aaa4db25cd
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.383-deb8) stable; urgency=low
|
||||
hedera-web (1.385-deb8) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ hedera-web.php usr/bin
|
|||
forms usr/share/hedera-web
|
||||
image usr/share/hedera-web
|
||||
js usr/share/hedera-web
|
||||
locale usr/share/hedera-web
|
||||
pages usr/share/hedera-web
|
||||
reports usr/share/hedera-web
|
||||
rest usr/share/hedera-web
|
||||
index.php usr/share/hedera-web
|
||||
package.json usr/share/hedera-web
|
||||
build usr/share/hedera-web
|
||||
manifest.json usr/share/hedera-web
|
||||
|
|
|
@ -4,8 +4,7 @@ var path = require ('path');
|
|||
|
||||
var devMode = process.env.NODE_ENV !== 'production';
|
||||
|
||||
module.exports =
|
||||
{
|
||||
config = {
|
||||
entry: ['./app.js'],
|
||||
output: {
|
||||
path: path.join (__dirname, 'build'),
|
||||
|
@ -29,19 +28,26 @@ module.exports =
|
|||
fallback: process.env.NODE_PATH
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin ({ _DEV_MODE: devMode })/*,
|
||||
new webpack.optimize.UglifyJsPlugin ({
|
||||
minimize: true,
|
||||
compress: {
|
||||
warnings: false
|
||||
}
|
||||
})*/
|
||||
new webpack.DefinePlugin ({ _DEV_MODE: devMode })
|
||||
],
|
||||
devServer: {
|
||||
inline: true,
|
||||
host: '0.0.0.0',
|
||||
headers: { "Access-Control-Allow-Origin": "*" }
|
||||
}/*,
|
||||
devtool: 'source-map'*/
|
||||
},
|
||||
devtool: 'eval-source-map'
|
||||
};
|
||||
|
||||
if (!devMode)
|
||||
{
|
||||
config.plugins.push (
|
||||
new webpack.optimize.UglifyJsPlugin ({
|
||||
minimize: true,
|
||||
compress: { warnings: false }
|
||||
})
|
||||
);
|
||||
config.devtool = 'source-map';
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
|
||||
|
|
Loading…
Reference in New Issue