-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.config.js
41 lines (41 loc) · 998 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
39
40
41
// var HtmlWebpackPlugin = require('html-webpack-plugin')
var path = require('path');
module.exports = {
entry: {
'app':'index.js',
'vendors': [
'lodash'
],
'chrome/content':'chrome/content.js'
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js',
chunkFilename: '[chunkhash].js',
libraryTarget: 'umd'
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: ['babel'],
query: {
cacheDirectory: true,
presets: ['es2015']
}
},
{ test: /\.txt$/, loader: "raw-loader" },
{ test: /\.css$/, loader: "style-loader!css-loader" },
{ test: /\.png$/, loader: "url-loader?limit=100000" },
{ test: /\.(woff(2)?|eot|svg|ttf)$/, loader: "url-loader?limit=100000" },
{ test: /\.jpg$/, loader: "file-loader" }
]
},
resolve: {
root: [__dirname],
extensions: ['', '.js']
},
plugins: [],
devtool:"eval"
}