diff --git a/glances/outputs/static/webpack.config.js b/glances/outputs/static/webpack.config.js new file mode 100644 index 00000000..8ad0aa8e --- /dev/null +++ b/glances/outputs/static/webpack.config.js @@ -0,0 +1,41 @@ + +const webpack = require('webpack'); +const path = require('path'); + +module.exports = { + entry: './js/app.js', + output: { + path: path.join(__dirname, 'public'), + filename: 'glances.js', + sourceMapFilename: 'glances.map.js', + }, + devtool: '#source-map', + module: { + loaders: [ + { + test: /\.css$/, + loader: 'style-loader!css-loader', + }, + { + test: /\.(png|jpg|gif|svg|ttf|woff|woff2|eot)$/, + loader: 'url-loader', + options: { + limit: 10000, + } + }, + { + test: /\.html/, + loader: 'ngtemplate-loader!html-loader' + }, + { + test: require.resolve('angular'), + loader: 'exports-loader?window.angular' + }, + ], + }, + plugins: [ + new webpack.ProvidePlugin({ + 'angular': 'angular', + }), + ] +}; \ No newline at end of file