New Theme - WebPack Config

23 views
Skip to first unread message

wesley...@gmail.com

unread,
May 23, 2021, 2:46:09 PM5/23/21
to mapstore-users
Hi,

How do I insert my new theme in webpack config ? The archive webpack is very different from tutorial:


My webpackconfig.js is:

var path = require("path");
var LoaderOptionsPlugin = require("webpack/lib/LoaderOptionsPlugin");

module.exports = {
    entry: {
        myapp: path.join(__dirname, "app")
    },
    output: {
        path: path.join(__dirname, "dist"),
        publicPath: "/dist/",
        filename: "myapp.js"
    },
    resolve: {
        extensions: [".js", ".jsx"]
    },
    module: {
        rules: [
            {
                test: /\.jsx?$/,
                exclude: /node_modules/,
                use: [{
                    loader: "babel-loader",
                    options: {
                        configFile: path.join(__dirname, 'babel.config.js')
                    }
                }]

            }
        ]
    },
    devtool: 'inline-source-map',
    plugins: [
        new LoaderOptionsPlugin({
            debug: true
        })
    ]
};


Regards,

Wesley

wesley mezine

unread,
May 26, 2021, 10:31:52 AM5/26/21
to mapstor...@googlegroups.com
Hi,

I install bin file to install Mapstore. 
I create a path novo in themes. I add index of themes in JavaScript but I don't say modify my webpack.
Can you help me please with my webpack file ?


Regards,

Wesley

--
You received this message because you are subscribed to a topic in the Google Groups "mapstore-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapstore-users/yI7p-F8AiwE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/c1b6ab17-bed6-45bf-93d6-39ad5681d3d6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages