forked from konsalex/Airport-Autocomplete-JS
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
33 lines (31 loc) · 735 Bytes
/
webpack.config.js
File metadata and controls
33 lines (31 loc) · 735 Bytes
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
var path = require('path');
var webpack = require('webpack');
const CompressionPlugin = require('compression-webpack-plugin');
// In order to run loaders only in src directory //
// const includedDirs = path.join(__dirname,'src')
module.exports = {
plugins: [new CompressionPlugin()],
entry: './src/index.js',
mode: 'development',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'main.bundle.js',
libraryTarget: 'umd',
library: 'airportjs',
},
devServer: {
disableHostCheck: true,
},
module: {
rules: [
{
test: /\.js$/,
exclude: path.resolve(__dirname, 'node_modules'),
loader: 'babel-loader',
},
],
},
stats: {
colors: true,
},
};