-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12659 from PennyDreadfulMTG/refactor-menu
Menu improvements
- Loading branch information
Showing
4 changed files
with
38 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,40 @@ | ||
/* eslint-disable */ | ||
const webpack = require("webpack"); | ||
const config = { | ||
entry: [ | ||
__dirname + "/../shared_web/static/js/cardtable.jsx", | ||
__dirname + "/../shared_web/static/js/decktable.jsx", | ||
__dirname + "/../shared_web/static/js/headtoheadtable.jsx", | ||
__dirname + "/../shared_web/static/js/leaderboardtable.jsx", | ||
__dirname + "/../shared_web/static/js/matchtable.jsx", | ||
__dirname + "/../shared_web/static/js/metagamegrid.jsx", | ||
__dirname + "/../shared_web/static/js/persontable.jsx", | ||
__dirname + "/../shared_web/static/js/rotationtable.jsx", | ||
], | ||
output: { | ||
path: __dirname + "/../shared_web/static/dist", | ||
filename: "bundle.js" | ||
}, | ||
resolve: { | ||
extensions: [".js", ".jsx", ".css"] | ||
}, | ||
module: { | ||
rules: [{ | ||
test: /\.jsx?/, | ||
exclude: /node_modules/, | ||
use: "babel-loader" | ||
}, { | ||
test: /\.css$/, | ||
exclude: /node_modules/, | ||
use: [{ | ||
loader: 'style-loader' | ||
module.exports = (env, argv) => { | ||
const isProduction = argv.mode === 'production'; | ||
|
||
return { | ||
entry: [ | ||
__dirname + "/../shared_web/static/js/cardtable.jsx", | ||
__dirname + "/../shared_web/static/js/decktable.jsx", | ||
__dirname + "/../shared_web/static/js/headtoheadtable.jsx", | ||
__dirname + "/../shared_web/static/js/leaderboardtable.jsx", | ||
__dirname + "/../shared_web/static/js/matchtable.jsx", | ||
__dirname + "/../shared_web/static/js/metagamegrid.jsx", | ||
__dirname + "/../shared_web/static/js/persontable.jsx", | ||
__dirname + "/../shared_web/static/js/rotationtable.jsx", | ||
], | ||
output: { | ||
path: __dirname + "/../shared_web/static/dist", | ||
filename: "bundle.js" | ||
}, | ||
resolve: { | ||
extensions: [".js", ".jsx", ".css"] | ||
}, | ||
module: { | ||
rules: [{ | ||
test: /\.jsx?/, | ||
exclude: /node_modules/, | ||
use: "babel-loader" | ||
}, { | ||
loader: 'css-loader' | ||
test: /\.css$/, | ||
exclude: /node_modules/, | ||
use: [{ | ||
loader: 'style-loader' | ||
}, { | ||
loader: 'css-loader' | ||
}] | ||
}] | ||
}] | ||
}, | ||
devtool: isProduction ? false : 'source-map' | ||
} | ||
}; | ||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters