Peter Stuifzand
a8ac82dfac
All checks were successful
continuous-integration/drone/push Build is passing
41 lines
857 B
JavaScript
41 lines
857 B
JavaScript
const path = require('path');
|
|
|
|
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
entry: {
|
|
index: './src/index.js'
|
|
},
|
|
output: {
|
|
filename: '[name].bundle.js',
|
|
path: path.resolve(__dirname, '../dist')
|
|
},
|
|
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.s?css$/,
|
|
use: ['style-loader', 'css-loader', 'sass-loader']
|
|
},
|
|
{
|
|
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
|
loader: "file-loader",
|
|
options: {
|
|
name: '[name].[ext]',
|
|
outputPath: 'font/'
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
plugins: [
|
|
new CleanWebpackPlugin()
|
|
],
|
|
|
|
devServer: {
|
|
contentBase: './dist',
|
|
hot: true
|
|
},
|
|
};
|