12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 'use strict';
- const webpack = require('webpack');
- const WebpackNotifierPlugin = require('webpack-notifier');
- module.exports = {
- entry: __dirname + '/src/entry.js',
- devtool: 'eval',
- output: {
- filename: 'angular-bootstrap-calendar.js'
- },
- module: {
- preLoaders: [{
- test: /.*\.js$/,
- loaders: ['eslint'],
- exclude: /node_modules/
- }, {
- test: /\.html$/,
- loader: 'htmlhint',
- exclude: /node_modules/
- }],
- loaders: [{
- test: /\.less$/,
- loader: 'style!css!less',
- exclude: /node_modules/
- }, {
- test: /\.html$/,
- loader: 'html',
- exclude: /node_modules/
- }]
- },
- devServer: {
- port: 8000,
- inline: true,
- hot: true
- },
- plugins: [
- new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
- new webpack.HotModuleReplacementPlugin(),
- new WebpackNotifierPlugin(),
- new webpack.DefinePlugin({
- EXCLUDE_TEMPLATES: false
- })
- ]
- };
|