mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 04:52:21 -07:00
separated vendor.js from main.js
This commit is contained in:
parent
3fab46a740
commit
811ce8fa22
6 changed files with 50 additions and 425 deletions
|
@ -1,10 +1,16 @@
|
|||
var path = require('path');
|
||||
var stylish = require('jshint-stylish');
|
||||
var webpack = require('webpack');
|
||||
|
||||
var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin();
|
||||
|
||||
module.exports = {
|
||||
entry : 'main.js',
|
||||
entry: {
|
||||
vendor: 'vendor.js',
|
||||
main: 'main.js'
|
||||
},
|
||||
resolve : {
|
||||
root : path.join(__dirname, "src", "ui"),
|
||||
root : path.join(__dirname, 'src', 'UI'),
|
||||
alias : {
|
||||
'vent' : 'vent',
|
||||
'backbone' : 'Shims/backbone',
|
||||
|
@ -40,10 +46,14 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
output : {
|
||||
filename : '_output/UI/main.js',
|
||||
sourceMapFilename : '_output/UI/main.map'
|
||||
filename : '_output/UI/[name].js',
|
||||
sourceMapFilename : '_output/UI/[name].map'
|
||||
},
|
||||
plugins : [
|
||||
new webpack.optimize.CommonsChunkPlugin({name: 'vendor'})
|
||||
],
|
||||
module: {
|
||||
|
||||
//this doesn't work yet. wainting for https://github.com/spenceralger/rcloader/issues/5
|
||||
/*preLoaders: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue