mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 09:08:07 -05:00
37 lines
866 B
JavaScript
37 lines
866 B
JavaScript
|
var path = require('path');
|
||
|
var webpack = require('webpack');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: {
|
||
|
main: './src/main.jsx',
|
||
|
splash: './src/views/splash/splash.jsx'
|
||
|
},
|
||
|
devtool: 'source-map',
|
||
|
externals: {
|
||
|
'react': 'React',
|
||
|
'react/addons': 'React'
|
||
|
},
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, 'build/js'),
|
||
|
filename: '[name].bundle.js'
|
||
|
},
|
||
|
module: {
|
||
|
loaders: [
|
||
|
{
|
||
|
test: /\.jsx$/,
|
||
|
loader: 'jsx-loader',
|
||
|
include: path.resolve(__dirname, 'src')
|
||
|
},
|
||
|
{
|
||
|
test: /\.json$/,
|
||
|
loader: 'json-loader',
|
||
|
include: path.resolve(__dirname, 'src')
|
||
|
},
|
||
|
{
|
||
|
test: /\.scss$/,
|
||
|
loader: 'style!css!sass'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
};
|