You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/webpack.config.js

43 lines
963 B

var path = require('path');
var webpack = require('webpack');
var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin();
var uiFolder = 'UI';
var root = path.join(__dirname, 'src', uiFolder);
10 years ago
module.exports = {
devtool : '#source-map',
watchOptions : { poll: true },
entry: {
vendor: 'vendor.js',
main: 'main.js'
},
resolve: {
root: root,
alias: {
'jdu': 'JsLibraries/jdu',
'libs': 'JsLibraries/'
10 years ago
}
},
output: {
filename: '_output/' + uiFolder + '/[name].js',
sourceMapFilename: '_output/' + uiFolder + '/[name].map'
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({ name: 'vendor' })
],
module: {
//this doesn't work yet. waiting for https://github.com/spenceralger/rcloader/issues/5
/*preLoaders: [
{
test: /\.js$/, // include .js files
loader: "jshint-loader",
exclude: [/JsLibraries/,/node_modules/]
}
]
*/
}
10 years ago
};