Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit cde77aa

Browse files
committed
updated with master
2 parents 145c3f6 + ffbb0b4 commit cde77aa

File tree

2 files changed

+36
-37
lines changed

2 files changed

+36
-37
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@
4848
"Django>=1.6.0,<1.10",
4949
'boto'
5050
],
51-
)
51+
)

webpack.config.js

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,53 @@ var BundleTracker = require('webpack-bundle-tracker');
44
var ExtractTextPlugin = require("extract-text-webpack-plugin");
55

66

7-
87
module.exports = {
98
context: __dirname,
109
entry: {
1110
index: './webpack_js/index',
11+
dashboard: './webpack_js/dashboard',
1212
},
1313
output: {
1414
path: path.resolve('./static/webpack_bundles/'),
1515
filename: "[name]-[hash].js"
1616
},
1717
module: {
18-
loaders: [
19-
// Extract css files
20-
{
21-
test: /\.js$|\.jsx$/,
22-
loader: 'babel-loader',
23-
exclude: /node_modules/
24-
},
25-
{
26-
test: /\.css$/,
27-
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader' })
28-
},
29-
// Optionally extract less files
30-
// or any other compile-to-css language
31-
{
32-
test: /\.less$/i,
33-
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: "css-loader!less-loader" })
34-
},
35-
{
36-
test: /\.scss$/,
37-
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: "css-loader!sass-loader!image-webpack-loader?bypassOnDebug&optimizationLevel=7&interlaced=false" })
38-
},
39-
{test: /\.(jpe?g|png|gif|svg)$/i, loaders: [
40-
'file-loader?hash=sha512&digest=hex&name=[hash].[ext]',
41-
'image-webpack-loader?bypassOnDebug&optimizationLevel=7&interlaced=false'
42-
]},
43-
// Optionally extract less files
44-
// or any other compile-to-css language
45-
// You could also use other loaders the same way. I. e. the autoprefixer-loader
46-
]
18+
loaders: [
19+
// Extract css files
20+
{
21+
test: /\.js$|\.jsx$/,
22+
loader: 'babel-loader',
23+
exclude: /node_modules/
24+
},
25+
{
26+
test: /\.css$/,
27+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader' })
28+
},
29+
// Optionally extract less files
30+
// or any other compile-to-css language
31+
{
32+
test: /\.less$/i,
33+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: "css-loader!less-loader" })
34+
},
35+
{
36+
test: /\.scss$/,
37+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: "css-loader!sass-loader!image-webpack-loader?bypassOnDebug&optimizationLevel=7&interlaced=false" })
38+
},
39+
{test: /\.(jpe?g|png|gif|svg)$/i, loaders: [
40+
'file-loader?hash=sha512&digest=hex&name=[hash].[ext]',
41+
'image-webpack-loader?bypassOnDebug&optimizationLevel=7&interlaced=false'
42+
]},
43+
// Optionally extract less files
44+
// or any other compile-to-css language
45+
// You could also use other loaders the same way. I. e. the autoprefixer-loader
46+
]
4747
},
4848
plugins: [
49-
new webpack.ProvidePlugin({
50-
$: "jquery",
51-
jQuery: "jquery",
52-
"window.jQuery": "jquery"
53-
}),
54-
49+
new webpack.ProvidePlugin({
50+
$: "jquery",
51+
jQuery: "jquery",
52+
"window.jQuery": "jquery"
53+
}),
5554
new BundleTracker({filename: './webpack-stats.json'}),
5655
new ExtractTextPlugin({
5756
filename: "[name]-[hash].css",

0 commit comments

Comments
 (0)