-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added build/dev webpack configs, updated package scripts to use webpa…
…ck for compilation, removed gulpfile dependency on bower.json
- Loading branch information
Showing
4 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
var loaders = require("./loaders"); | ||
var webpack = require('webpack'); | ||
|
||
module.exports = { | ||
entry: ['./src/index.ts'], | ||
output: { | ||
filename: 'ngJwtAuth.js', | ||
path: 'dist' | ||
}, | ||
devtool: 'source-map', | ||
resolve: { | ||
root: __dirname, | ||
extensions: ['', '.ts', '.js', '.json'] | ||
}, | ||
resolveLoader: { | ||
modulesDirectories: ["node_modules"] | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin( | ||
{ | ||
warning: false, | ||
mangle: true, | ||
comments: false | ||
} | ||
) | ||
], | ||
module:{ | ||
loaders: loaders | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var loaders = require("./loaders"); | ||
var BrowserSyncPlugin = require('browser-sync-webpack-plugin'); | ||
var HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
var webpack = require('webpack'); | ||
module.exports = { | ||
entry: ['./src/index.ts'], | ||
output: { | ||
filename: 'build.js', | ||
path: 'dist' | ||
}, | ||
resolve: { | ||
root: __dirname, | ||
extensions: ['', '.ts', '.js', '.json'] | ||
}, | ||
resolveLoader: { | ||
modulesDirectories: ["node_modules"] | ||
}, | ||
devtool: "source-map", | ||
plugins: [ | ||
new BrowserSyncPlugin({ | ||
host: 'localhost', | ||
port: 8080, | ||
server: { | ||
baseDir: 'dist' | ||
}, | ||
ui: false, | ||
online: false, | ||
notify: false | ||
}) | ||
], | ||
module:{ | ||
loaders: loaders | ||
} | ||
}; |