-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.docs.js
More file actions
30 lines (29 loc) · 833 Bytes
/
webpack.docs.js
File metadata and controls
30 lines (29 loc) · 833 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
var path = require('path'),
webpack = require('webpack');
module.exports = {
entry: './docs/index.js',
output: {
path: path.resolve(__dirname, "./docs"),
publicPath: "/",
filename: 'build.js'
},
module: {
rules: [
{ test: /\.(js|jsx)$/, exclude: [/node_modules/], use: "babel-loader" },
{ test: /\.css$/, use: ["style-loader", "css-loader"] }
]
},
resolve: {
extensions: [".js", ".jsx"],
alias: {
'romagny13-react-form-validation': path.resolve(__dirname, './src'),
'romagny13-react-form-validation/lib': path.resolve(__dirname, './src')
}
},
devServer: {
contentBase: './docs',
historyApiFallback: true,
noInfo: true
},
devtool: "#eval-source-map"
};