react-workspaces
Version:
A component with a resizable and splittable workspace. A panel with draggable tabs.
46 lines (41 loc) • 852 B
JavaScript
var webpack = require('webpack');
var plugins = [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
];
// if (process.env.NODE_ENV === 'production') {
// plugins.push(
// new webpack.optimize.UglifyJsPlugin({
// compressor: {
// screw_ie8: true,
// warnings: false
// }
// })
// );
// }
module.exports = {
module: {
loaders: [
{
test: /\.js$/,
loaders: ['babel-loader'],
exclude: /node_modules/
},
{
test: /\.scss$/,
loaders: ["style-loader", "css-loader", "sass-loader"]
},
]
},
output: {
library: 'react-workspace',
libraryTarget: 'umd'
},
plugins: plugins,
resolve: {
extensions: ['', '.js']
}
};
;