1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-28 13:03:31 +03:00
tabby/docs/webpack.config.js

28 lines
629 B
JavaScript
Raw Normal View History

2018-08-11 22:29:29 +03:00
const path = require('path')
module.exports = {
entry: {
2018-08-11 22:35:56 +03:00
'index.ignore': 'file-loader?name=../index.html!pug-html-loader!' + path.resolve(__dirname, './index.pug'),
2018-08-11 22:29:29 +03:00
'bundle': path.resolve(__dirname, 'index.js'),
},
context: __dirname,
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js'
},
module: {
rules: [
{ test: /\.scss$/, use: ['style-loader', 'css-loader', 'sass-loader'] },
{
test: /\.(jpeg|png)?$/,
use: {
loader: 'file-loader',
options: {
name: 'assets/[name].[ext]'
}
}
}
]
},
}