forked from json-schema-form/angular-schema-form-material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
38 lines (37 loc) · 999 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* global __dirname */
var webpack = require('webpack');
var path = require('path');
var pjson = require('./package.json');
console.log('Angular Schema Form v' + pjson.version);
module.exports = {
entry: './src/module.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'angular-schema-form-material.js',
libraryTarget: 'umd'
},
resolve: { extensions: [ '', '.js', '.html' ] },
module: {
loaders: [
{
test: /\.js$/,
include: [ path.join(__dirname, 'src') ],
loader: 'babel',
},
{ test: /\.html$/, loader: "ng-cache?prefix=decorators/material" }
]
},
externals: {
'angular': 'var angular',
'tv4': 'var tv4',
},
plugins: [
new webpack.BannerPlugin(
'angular-schema-form-material\n' +
'@version ' +
pjson.version + '\n' +
'@link https://github.com/json-schema-form/angular-schema-form-material\n' +
'@license MIT\n' +
'Copyright (c) 2016 JSON Schema Form')
]
};