Skip to content

Instantly share code, notes, and snippets.

@dustinfarris
Created March 15, 2017 13:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dustinfarris/9aeb9a5617c57aed1ba761cc66b71c48 to your computer and use it in GitHub Desktop.
Save dustinfarris/9aeb9a5617c57aed1ba761cc66b71c48 to your computer and use it in GitHub Desktop.
brunch config for using Elm with Phoenix 1.3-rc.0
exports.config = {
files: {
javascripts: {
joinTo: "js/app.js"
},
stylesheets: {
joinTo: "css/app.css"
},
templates: {
joinTo: "js/app.js"
}
},
conventions: {
assets: /^(static)/
},
paths: {
watched: ["static", "elm", "css"],
public: "../priv/static"
},
plugins: {
babel: {
ignore: [/vendor/]
},
elmBrunch: {
mainModules: ["elm/Main.elm"],
makeParameters: ['--debug'],
executablePath: 'node_modules/elm/binwrappers'
},
elmCss: {
sourcePath: "elm/Stylesheets.elm",
pathToMake: "node_modules/elm/binwrappers/elm-make"
}
},
modules: {
autoRequire: {
"js/app.js": ["js/app"]
}
},
npm: {
enabled: true
},
notifications: false
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment