-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
35 lines (35 loc) · 936 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
33
34
35
const HtmlWebpackPlugin = require("html-webpack-plugin");
const path = require("path");
// CHANGE HERE FILE NAMES REGULAR ACTION CABLE OR GRAPHQL ACTION CABLE BUILD
module.exports = {
entry: {index: path.resolve(__dirname, "src", "index_regular_action_cable.js")},
output: {
path: path.resolve(__dirname, "build")
},
plugins: [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, "src", "index_regular_action_cable.html")
})
],
node: {
fs: 'empty',
},
module: {
rules: [
{
test: /\.scss$/,
use: ["style-loader", "css-loader", "sass-loader"]
},
{
test: /\.js$/,
exclude: /node_modules/,
use: ["babel-loader"]
}
]
},
devServer: {
host: "lvh.me",
port: 8080,
https: false
}
};