const webpack = require('webpack');
module.exports = {
    entry: {
        'vendor': [
            './src/main/webapp/app/vendor',
            '@angular/common',
            '@angular/compiler',
            '@angular/core',
            '@angular/forms',
            '@angular/http',
            '@angular/platform-browser',
            '@angular/platform-browser-dynamic',
            '@angular/router',
            '@ng-bootstrap/ng-bootstrap',
            'angular2-cookie',
            'angular2-infinite-scroll',
            'jquery',
            'ng-jhipster',
            'ng2-webstorage',
            <%_ if (websocket == 'spring-websocket') { _%>
            'sockjs-client',
            'webstomp-client',
            <%_ } _%>
            'rxjs'
        ]
    },
    resolve: {
        extensions: ['.ts', '.js'],
        modules: ['node_modules']
    },
    module: {
        exprContextCritical: false,
        rules: [
            <%_ if (useSass) { _%>
            {
                test: /(vendor\.scss|global\.scss)/,
                loaders: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader']
            },
            <%_ } else { _%>
            {
                test: /(vendor\.css|global\.css)/,
                loaders: ['style-loader', 'css-loader']
            },
            <%_ } _%>
            {
                test: /\.(jpe?g|png|gif|svg|woff2?|ttf|eot)$/i,
                loaders: ['file-loader?hash=sha512&digest=hex&name=[hash].[ext]']
            }
        ]
    },
    output: {
        filename: '[name].dll.js',
        path: './<%= BUILD_DIR %>www',
        library: '[name]'
    },
    plugins: [
        new webpack.DllPlugin({
            name: '[name]',
            path: './<%= BUILD_DIR %>www/[name].json'
        })
    ]
};

@@ -29,16 +29,46 @@
 pack');%0A
+const path = require('path');%0A
 module.e
@@ -1595,32 +1595,45 @@
 ,%0A        path: 
+path.resolve(
 './%3C%25= BUILD_DIR
@@ -1639,16 +1639,17 @@
 R %25%3Ewww'
+)
 ,%0A      

fix absolute path bug in Windows