Skip to content

holidaypirates/php-config-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

php-config-loader

php config loader for webpack

Usage

config.php

<?php

return [
    [
        'value' => 'foo',
        'label' => 'Foo label'
    ],
    [
        'value' => 'bar',
        'label' => 'Bar label'
    ]
];

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.php?$/,
        use: [
          {
            loader: 'php-config-loader'
          },
        ]
      },
      ...
    ],
  },
  ...
};

About

php config loader for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published