wiki/editor/webpack.config.js
Peter Stuifzand a8ac82dfac
All checks were successful
continuous-integration/drone/push Build is passing
Add wiki-list-editor 0.4.1
2020-05-20 23:08:34 +02:00

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
},
};