Files
old-spike/client/config/development/webpack.js
2016-02-22 20:02:45 -06:00

53 lines
1.1 KiB
JavaScript

import webpack from 'webpack';
const CLIENT = __dirname + '/../..';
const ROOT = CLIENT + '/..';
module.exports = {
entry: {
app: CLIENT + '/config/development/app',
style: CLIENT + '/config/development/style'
},
output: {
filename: '[name].js',
path: CLIENT + '/build/development'
},
module: {
loaders: [
{
test: /\.scss$/,
loaders: ['style', 'raw', 'sass']
}, {
test: /\.css$/,
loaders: ['style', 'raw']
}, {
test: /\.js$/,
loader: 'babel'
}
]
},
sassLoader: {
includePaths: [CLIENT, ROOT + '/node_modules']
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
}),
new webpack.ProvidePlugin({
d3: "d3",
"window.d3": "d3"
})
],
node: {
fs: "empty"
},
resolve: {
alias: {
api: CLIENT + '/api/development',
config: CLIENT + '/config/development'
}
}
}