Created
December 27, 2018 17:03
-
-
Save YuraKolesnikov/4573b466a6bbc987a88b6cb60cf63e49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
module.exports = { | |
entry: './src/app.js', | |
output: { | |
path: path.resolve(__dirname, './public'), | |
filename: 'app.js', | |
publicPath: '/public' | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
loader: 'babel-loader' | |
}, | |
{ | |
test: /\.sass$/, | |
use: ['style-loader', 'css-loader', 'sass-loader'] | |
} | |
] | |
}, | |
devServer: { | |
host: '0.0.0.0', | |
overlay: true, | |
contentBase: path.resolve(__dirname, './public'), | |
watchContentBase: true | |
}, | |
devtool: 'cheap-eval-source-map' // remove for build | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment