1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00
copilot/ui/webpack/test.js
Sérgio Ramos 0189d7d29a re-organize webpack configuration
- detach plugins configuration
 - use aliases
 - add project root to frontend module resolver
2016-12-05 20:11:55 +00:00

23 lines
423 B
JavaScript

const plugins = require('./plugins');
module.exports = {
output: {
libraryTarget: 'commonjs2'
},
plugins: [
plugins['no-errors'],
plugins['loader-options']
],
module: {
loaders: [{
test: /\.css?$/,
loader: [
'css-loader?',
'modules&importLoaders=1&',
'localIdentName=[name]__[local]___[hash:base64:5]!',
'postcss-loader'
].join('')
}]
}
};