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