Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
fix: build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
toutpt committed May 10, 2016
1 parent f03f9b8 commit 450d7af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ var config = {
externals: {
angular: 'angular',
'osm-auth': 'osm-auth',
'osmAuth': 'osmAuth',
'angular-base64': 'angular-base64',
ngstorage: 'ngstorage',
osmtogeojson: 'osmtogeojson'
},
output: {
path: path.join(__dirname, 'dist'),
filename: 'osm-[name].js',
path: __dirname,
filename: 'dist/osm-[name].js',
libraryTarget: 'umd',
library: ['angular-osm', 'name']
},
Expand All @@ -34,13 +35,6 @@ var config = {
}
]
},
plugins: [
// new webpack.optimize.UglifyJsPlugin({
// compress: {
// warnings: false
// }
// })
],
devServer: {
contentBase: __dirname,
//hot: true,
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ var config = require('./webpack.config');


config.output = {
path: path.join(__dirname, 'dist'),
filename: 'osm-[name].min.js',
path: __dirname,
filename: 'dist/osm-[name].min.js',
libraryTarget: 'umd',
library: ['angular-osm', 'name']
};
Expand Down

0 comments on commit 450d7af

Please sign in to comment.