-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
85 lines (83 loc) · 1.85 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
var path = require('path')
var webpack = require('webpack')
//var BabiliPlugin = require("babili-webpack-plugin")
module.exports = {
mode: 'production',
optimization: {
minimize: true //Update this to true or false
},
watch: true,
entry: {
'index': './index.js',
'bye': './bye.ls'
},
output: {
path: path.join(__dirname, 'dist'),
filename: "[name].js"
},
//plugins: [
// new webpack.optimize.UglifyJsPlugin()
//],
//plugins: [
// new BabiliPlugin({}, {comments: false, sourceMap: false})
//],
module: {
//loaders: [
rules: [
{
test: /\.ls$/,
loader: 'livescript-loader'
}
//{ test: /\.(woff2?|svg)$/, loader: 'url-loader?limit=10000' },
//{ test: /\.(ttf|eot)$/, loader: 'file-loader' },
//{
// test: /\.ls$/,
// loader: 'livescript-loader'
//}
/*
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
//loader: 'file-loader?name=[path][name]'
},
{ test: /\.(png|woff|woff2|eot|ttf|svg)$/, use: 'url-loader?limit=100000' },
*/
/*
{
test: /\.svg/i,
loader: 'file-loader?name=[path][name]'
},
{
test: /\.css$/,
//loader: 'style-loader!css-loader'
loader: 'file-loader?name=[path][name]'
},
{
test: /\.html$/,
loader: 'html-loader?attrs=false'
},
{
test: /\.(woff|woff2|ttf|eot)$/,
loader: 'file-loader?name=[path][name]'
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader:'file-loader?name=[path][name]'
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader:'file-loader?name=[path][name]'
}
*/
/*
{
text: /\.svg/,
use: {
loader: 'svg-url-loader',
options: {}
}
}
*/
]
}
}