react-datalist-input/webpack.config.js
2019-06-12 23:55:00 +02:00

35 lines
608 B
JavaScript

module.exports = {
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
},
{
test: /^(?!.*?\.module).*\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.module\.css$/,
use: ['style-loader', {
loader: 'css-loader',
options: {
modules: true
}
}]
},
{
test: /\.html$/,
use: [
{
loader: "html-loader"
}
]
}
]
}
};