Files
old-spike/server/config/webpack/development.js

43 lines
837 B
JavaScript
Raw Normal View History

2016-02-09 11:16:49 -06:00
import webpack from 'webpack';
2016-02-08 18:23:40 -06:00
const ROOT = __dirname + '/../../../';
module.exports = {
entry: {
app: ROOT + 'client/app',
style: ROOT + 'client/style'
},
output: {
filename: '[name].js',
path: ROOT + 'client/build/development'
},
externals: {
jquery: "$",
d3: "d3"
},
module: {
loaders: [
{
test: /\.scss$/,
2016-02-09 11:16:49 -06:00
loaders: ['style', 'raw', 'sass']
2016-02-08 18:23:40 -06:00
}, {
test: /\.css$/,
2016-02-09 11:16:49 -06:00
loaders: ['style', 'raw']
}, {
test: /\.js$/,
loader: 'babel'
2016-02-08 18:23:40 -06:00
}
]
},
sassLoader: {
includePaths: [ROOT + 'client', ROOT + 'node_modules']
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
})
]
}