Webpack - cannot exclude directory -


i cannot exclude directory, web pack regex dont make sens

i have folder called "ignore", tried /ignore/, /^ignore/ /ignore(.+)?$/ , many more

it not help, webpack takes directory rest of project driving me nuts, checked on many other forums, given solutions either not work , or not make sens

  config.module = {         rules: [             // support .ts files.             {                 test: /\.ts$/,                 loaders: ['awesome-typescript-loader?' + atloptions, 'angular2-template-loader', '@angularclass/hmr-loader'],                 exclude: [istest ? /\.(e2e)\.ts$/ : /\.(spec|e2e)\.ts$/, /node_modules\/(?!(ng2-.+))/, /ignore(.+)?$/]             }, 

it shoudl simple, can me out on ?

thanks


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -