forked from Moon-009/react-native-chartjs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
29 lines (28 loc) · 743 Bytes
/
webpack.config.js
File metadata and controls
29 lines (28 loc) · 743 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
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
module.exports = {
entry : {
index : './web/chart.js'
},
output : {
path : path.join(__dirname, 'dist'),
filename : '[name].bundle.js'
},
resolve : {
alias : {
myChart : 'Chart.bundle.min.js'
},
modules: [
path.resolve(__dirname, './web/lib')
]
},
plugins : [
new HtmlWebpackPlugin({
template : './web/chart.html',
inlineSource : '.js$',
cache : false,
}),
new HtmlWebpackInlineSourcePlugin()
]
}