react-booking-timeline
Version:
React booking timeline generated
42 lines • 1.2 kB
JavaScript
var path = require('path');
module.exports = {
context: path.join(__dirname),
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'index.js',
libraryTarget: 'commonjs2',
library: 'BookingTimeline',
publicPath: '/build/',
},
module: {
rules: [
{
test: /\.scss$/,
use: [{
loader: 'style-loader', // creates style nodes from JS strings
}, {
loader: 'css-loader', // translates CSS into CommonJS
}, {
loader: 'sass-loader', // compiles Sass to CSS
}],
},
{
test: /\.js?$/,
include: path.resolve(__dirname, 'src'),
exclude: /node_modules/,
use: [
{
loader: 'babel-loader',
options: {
presets: ['react', 'stage-0']
}
}
]
}
]
},
externals: {
'react': 'commonjs react'
}
};