Skip to content

Instantly share code, notes, and snippets.

@YuraKolesnikov
Created December 27, 2018 17:03
Show Gist options
  • Save YuraKolesnikov/4573b466a6bbc987a88b6cb60cf63e49 to your computer and use it in GitHub Desktop.
Save YuraKolesnikov/4573b466a6bbc987a88b6cb60cf63e49 to your computer and use it in GitHub Desktop.
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