Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
fix(maps-web): fixing uppercase Maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Antonelli authored and diego-antonelli committed Nov 26, 2019
1 parent 5e1ba25 commit fd4785e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages-web/maps/src/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<widgetFile path="Maps.xml"/>
</widgetFiles>
<files>
<file path="com/mendix/widget/custom/maps"/>
<file path="com/mendix/widget/custom/Maps"/>
</files>
</clientModule>
</package>
Binary file modified packages-web/maps/tests/TestProjects/Mendix7/widgets/Maps.mpk
Binary file not shown.
Binary file modified packages-web/maps/tests/TestProjects/Mendix8/widgets/Maps.mpk
Binary file not shown.
1 change: 0 additions & 1 deletion packages-web/maps/webpack.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const merge = require("webpack-merge");
const baseConfig = require("../utils-react-widgets/configs/webpack.config.dev");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

const customConfig = {
module: {
Expand Down
23 changes: 22 additions & 1 deletion packages-web/maps/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
const merge = require("webpack-merge");
const baseConfig = require("../utils-react-widgets/configs/webpack.config.prod");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

const customConfig = {
output: {
filename: "widgets/com/mendix/widget/custom/Maps/Maps.js"
},
module: {
rules: [
{
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
loader: "url-loader"
}
]
},
plugins: [
new MiniCssExtractPlugin({
filename: "./widgets/com/mendix/widget/custom/Maps/ui/Maps.css",
ignoreOrder: false
})
]
};

const customPreviewConfig = {
module: {
rules: [
{
Expand All @@ -12,4 +33,4 @@ const customConfig = {
}
};

module.exports = [merge(baseConfig[0], customConfig), merge(baseConfig[1], customConfig)];
module.exports = [merge(baseConfig[0], customConfig), merge(baseConfig[1], customPreviewConfig)];

0 comments on commit fd4785e

Please sign in to comment.