-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.config.js
36 lines (35 loc) · 896 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
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: path.join(__dirname, './dist'),
publicPath: '',
filename: 'index.js'
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['es2015']
}
},
{
test: /\.css$/,
loader: 'style!css'
}
]
},
plugins: [
new HtmlWebpackPlugin({
inject: false,
cache: false,
title: 'Contentful Spotify UI Extension',
template: './src/templates/index.html',
filename: 'index.html'
})
]
};