Files
smart-table/config/webpack.common.js
2020-01-29 13:00:28 +08:00

31 lines
627 B
JavaScript

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',
path: path.resolve(__dirname, '../dist')
},
}