PHP array loader module for webpack
MIT License
npm install php-array-loader
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.php$/,
use: 'php-array-loader'
}
]
}
}
import config from 'config.php'