some comments for debugging

This commit is contained in:
Synox 2016-07-07 21:29:31 +02:00
parent 4916d03842
commit 873cfbfd94

View File

@ -17,6 +17,14 @@ var commonConfig = {
// Einstiegspunkt fuer Webpack // Einstiegspunkt fuer Webpack
entry: { entry: {
app: './app.js' app: './app.js'
// angular: 'angular',
// anguboot: 'angular-ui-bootstrap',
// angurouter: 'angular-ui-router',
// bootcss: 'bootstrap/dist/css/bootstrap.css',
// angusan: 'angular-sanitize',
// autolinker: 'autolinker',
// babelpolyfill: 'babel-polyfill',
// phonetic: 'phonetic'
}, },
output: { output: {
path: path.join(__dirname, 'dist'), path: path.join(__dirname, 'dist'),
@ -44,6 +52,7 @@ var production = extend({}, commonConfig, {
plugins: [ plugins: [
new ngAnnotatePlugin({add: true}), new ngAnnotatePlugin({add: true}),
new webpack.optimize.DedupePlugin(), new webpack.optimize.DedupePlugin(),
new webpack.NoErrorsPlugin(),
new webpack.optimize.UglifyJsPlugin({ new webpack.optimize.UglifyJsPlugin({
minimize: true, minimize: true,
compress: { compress: {
@ -51,7 +60,7 @@ var production = extend({}, commonConfig, {
}, },
sourceMap: false sourceMap: false
}), }),
// automatisches Einfügen der Dateien app und vendor // add js files
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: '../index.html' template: '../index.html'
}) })