forked from azizali/react-super-treeview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.examples.js
More file actions
31 lines (28 loc) · 783 Bytes
/
webpack.examples.js
File metadata and controls
31 lines (28 loc) · 783 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
31
'use strict';
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const examplesFolder = './src-examples/';
module.exports = {
entry: examplesFolder+'index.js',
output: {
path: path.resolve(__dirname, 'examples'),
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.js$/,
include: path.resolve(__dirname, 'src-examples'),
loaders: ['babel-loader'],
},
{
test: /\.s?css/,
use: ['style-loader', 'css-loader', 'sass-loader']
}
]
},
plugins: [
new HtmlWebpackPlugin({ template: examplesFolder+'index.html' })
]
}