Files
smart-table/config/webpack.common.js

31 lines
627 B
JavaScript
Raw Normal View History

2020-01-13 16:25:20 +08:00
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.js',
plugins: [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '../public/index.html'),
inject: 'head'
})
],
module: {
rules: [{
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
{
loader: 'sass-loader',
options: {
sourceMap: false
}
}
]
}, ]
},
output: {
filename: 'smartTable.[chunkhash:8].js',
2020-01-13 16:25:20 +08:00
path: path.resolve(__dirname, '../dist')
},
}