-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwebpack.config.js
32 lines (31 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
var webpack = require("webpack");
module.exports = {
entry: {
"app": "./app/boot"
},
output: {
path: __dirname,
filename: "./dist/bundle.js"
},
resolve: {
extensions: ['', '.js', '.ts','.css','.html']
},
devtool: 'source-map',
module: {
loaders: [
{test: /\.html$/, loader:'raw-loader'},
{test: /\.css$/, loader: 'style-loader!css-loader'},
{test: /\.png$/, loader: 'url-loader?limit=100000'},
{test: /\.jpg$/, loader: 'file-loader'},
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" },
{ test: require.resolve("jquery"), loader: "imports?jQuery=jquery" }
]
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
]
};