-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
35 lines (30 loc) · 869 Bytes
/
webpack.config.js
File metadata and controls
35 lines (30 loc) · 869 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
34
35
/**
* Created by rj on 1/8/2017.
*/
'use strict';
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
// Entry point for static analyzer
entry: [
'./src/js/main.js',
'./index.html'
],
output: {
path: __dirname + '/dist',
filename: 'bundle.js',
publicPath: '/dist/'
},
module: {
loaders: [
{test: /\.js?$/, exclude: /node_modules/, loaders: ['babel-loader', 'eslint-loader']},
{test: /\.hbs$/, loader: 'handlebars-loader'},
{test: /\.scss$/, loader: ExtractTextPlugin.extract('style', 'css!sass')},
{test: /\.html$/, loader: 'file-loader?name=[name].[ext]'}
]
},
plugins: [
new ExtractTextPlugin('styles.css')
],
devtool: '#inline-source-map',
};