I'm running a Phoenix server, where the Webpack config file looks like this in parts:
entry: { 'elm-db': './elm-db/src/Main.elm', 'elm-ledger': './elm-ledger/src/Main.elm', }, output: { filename: '[name].js', path: path.resolve(__dirname, '../priv/static/js'), publicPath: '/js/', }, module: { rules: [ { test: /\.elm$/, exclude: [/elm-stuff/, /node_modules/], use: { loader: 'elm-webpack-loader', options: { cwd: path.resolve(__dirname, 'elm-db'), debug: options.mode === "development", optimize: options.mode === "production", }, }, }, ] },
I have two Elm projects, "elm-db" and "elm-ledger". I've managed to add "elm-db" correctly to the config file, and it compiles the project just fine. However, I keep failing to add "elm-ledger" as well. How do I add it?
https://stackoverflow.com/questions/66824622/compiling-more-than-one-elm-project-in-webpack March 27, 2021 at 05:39AM
没有评论:
发表评论