mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
adding webpack.config.js
This commit is contained in:
parent
46a1f7fba1
commit
f29a75a7c9
41
glances/outputs/static/webpack.config.js
Normal file
41
glances/outputs/static/webpack.config.js
Normal file
@ -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',
|
||||
}),
|
||||
]
|
||||
};
|
Loading…
Reference in New Issue
Block a user