var webpack = require ('webpack'); var path = require ('path'); module.exports = { entry: { 'salix.app': ['app'], 'salix.login': ['login'] }, output: { path: path.join (__dirname, 'build', 'public'), filename: '[name].js', publicPath: '/static/', chunkFilename: "chunk.[name].[chunkhash].js" }, module: { loaders: [ { test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: { presets: ['es2015'] } },{ test: /\.html$/, loader: 'raw' },{ test: /\.json$/, loader: 'json' },{ test: /\.css$/, loader: 'style!css' },{ test: /\.scss$/, loader: 'style!css!sass' } ] }, /* plugins: [ new webpack.optimize.UglifyJsPlugin ({ minimize: true, compress: { warnings: false } }) ], */ resolve: { modulesDirectories: [ __dirname, 'node_modules' ] }, devServer: { inline: true, host: '0.0.0.0' }, devtool: 'source-map', watch: true };