update development bundle
This commit is contained in:
52
client/config/development/webpack.js
Normal file
52
client/config/development/webpack.js
Normal file
@@ -0,0 +1,52 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user