Almog

Almog

Warn: js/admin/app-admin.js compiled, but not written. Check your javascripts.joinTo config

When I run brunch build I’m getting a number of warnings like so

warn: js/admin/app-admin.js compiled, but not written. Check your javascripts.joinTo config

Any idea what’s causing this here is my config (my project is using admin and public to load different js and css)
exports.config = {
// See Brunch - ultra-fast HTML5 build tool for docs.
files: {
javascripts: {
joinTo: {
// public js
‘js/app.js’: /^(assets/js/public)/,
‘js/countdown.js’: /^(assets/js/public)/,
‘js/jquery.steps.min.js’: /^(assets/js/public)/,
‘js/jquery-3.1.1.min.js’: /^(assets/js/public)/,
‘js/flickity.min.js’: /^(assets/js/public)/,
‘js/parallax.js’: /^(assets/js/public)/,
‘js/scripts.js’: /^(assets/js/public)/,
‘js/smooth-scroll.min.js’: /^(assets/js/public)/,
‘js/typed.min.js’: /^(assets/js/public)/,
‘js/ytplayer.min.js’: /^(assets/js/public)/,

        // admin js
        'js/app-admin.js': /^(assets\/js\/admin)/ ,
        'js/jquery-1.11.2.min.js': /^(assets\/js\/admin)/,
        'js/jquery-migrate-1.2.1.min.js': /^(assets\/js\/admin)/,
        'js/bootstrap.js': /^(assets\/js\/admin)/,
        'js/jquery.autosize.js': /^(assets\/js\/admin)/,
        'js/jquery.App2.js': /^(assets\/js\/admin)/,
        'js/jquery.AppNavigation2.js': /^(assets\/js\/admin)/,
        'js/jquery.editirmd.js': /^(assets\/js\/admin)/,
        'js/lib/flowchart.min.js': /^(assets\/js\/admin)/,
        'js/lib/jquery.flowchart.min.js': /^(assets\/js\/admin)/,
        'js/lib/marked.min.js': /^(assets\/css\/admin)/,
        'js/lib/prettify.min.js': /^(assets\/js\/admin)/,
        'js/lib/raphael.min.js': /^(assets\/js\/admin)/,
        'js/lib/sequence-diagram.min.js': /^(assets\/js\/admin)/,
        'js/lib/underscore.min.js': /^(assets\/js\/admin)/,
      }

      // To use a separate vendor.js bundle, specify two files path
      // http://brunch.io/docs/config#-files-
      // joinTo: {
      //   "js/app.js": /^js/,
      //   "js/vendor.js": /^(?!js)/
      // }
      //
      // To change the order of concatenation of files, explicitly mention here
      // order: {
      //   before: [
      //     "vendor/js/jquery-2.1.1.js",
      //     "vendor/js/bootstrap.min.js"
      //   ]
      // }
    },
    stylesheets: {
      joinTo: {
        // Public css
        'css/bootstrap.css': /^(assets\/css\/public)/,
        'css/stack-interface.css': /^(assets\/css\/public)/,
        'css/socicon.css': /^(assets\/css\/public)/,
        'css/flickity.css': /^(assets\/css\/public)/,
        'css/iconsmind.css': /^(assets\/css\/public)/,
        'css/query.steps.css': /^(assets\/css\/public)/,
        'css/theme.css': /^(assets\/css\/public)/,
        'css/custom.css': /^(assets\/css\/public)/,
        'css/lightbox.min.css': /^(assets\/css\/public)/,

        // Admin css
        'css/bootstrap2.css': /^(assets\/css\/admin)/,
        'css/materialadmin.css': /^(assets\/css\/admin)/,
        'css/font-awesome.css': /^(assets\/css\/admin)/,
        'css/material-design-iconic-font.css': /^(assets\/css\/admin)/,
        'css/editormd.css': /^(assets\/css\/admin)/,
      }
    },
    templates: {
      joinTo: "js/app.js",
    }
  },

  conventions: {
    // This option sets where we should place non-css and non-js assets in.
    // By default, we set this to "/assets/static". Files in this directory
    // will be copied to `paths.public`, which is "priv/static" by default.
    assets: /^(static)/
  },

  // Phoenix paths configuration
  paths: {
    // Dependencies and current project directories to watch
    watched: ["static", "css", "js", "vendor"],
    // Where to compile files to
    public: "../priv/static"
  },

  // Configure your plugins
  plugins: {
    babel: {
      // Do not use ES6 compiler in vendor code
      //ignore: [/vendor/]


      ignore: [
        /vendor/,
        /assets\/css\/public\/vendor/,
        /assets\/css\/admin\/vendor/
      ]
    }
  },

  modules: {
    autoRequire: {
      "js/app.js": ["js/app"],
    }
  },

  npm: {
    enabled: true
  }
};

Where Next?

Popular in Questions Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29603 241
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52673 488
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement