some comments for debugging

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

View File

@ -12,11 +12,19 @@ var proxyMiddleware = require('proxy-middleware');
* Gemeinsame Konfigurationsdatei fuer Webpack (der Teil, der fuer alle Umgebungen gleich ist) * Gemeinsame Konfigurationsdatei fuer Webpack (der Teil, der fuer alle Umgebungen gleich ist)
* @type {} Webpack Konfiguration * @type {} Webpack Konfiguration
*/ */
var commonConfig = { var commonConfig = {
context: path.resolve(__dirname, 'src/app'), context: path.resolve(__dirname, 'src/app'),
// 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'
}) })