mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-11 17:09:39 +01:00
35 lines
821 B
JavaScript
35 lines
821 B
JavaScript
var path = require('path');
|
|
|
|
module.exports = {
|
|
mode: 'production',
|
|
entry: './src/DataListInput.jsx',
|
|
output: {
|
|
path: path.resolve('lib'),
|
|
filename: 'DataListInput.js',
|
|
libraryTarget: 'commonjs2'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.jsx?$/,
|
|
exclude: /(node_modules)/,
|
|
use: 'babel-loader'
|
|
},
|
|
{
|
|
test: /^(?!.*?\.module).*\.css$/,
|
|
use: ['style-loader', 'css-loader']
|
|
},
|
|
{
|
|
test: /\.module\.css$/,
|
|
use: ['style-loader', {
|
|
loader: 'css-loader',
|
|
options: {
|
|
modules: true
|
|
}
|
|
}]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|