assets
2 months ago
field-handlers
2 months ago
migrator
2 months ago
block.php
2 months ago
editor.php
2 months ago
path-url-trait.php
2 months ago
proxy.php
2 months ago
registry.php
2 months ago
style-cache.php
2 months ago
style-engine.php
2 months ago
style-inserter.php
2 months ago
style-manager.php
2 months ago
webpack.config.js
2 months ago
webpack.config.js
19 lines
| 1 | const defaultConfig = require('@wordpress/scripts/config/webpack.config'); |
| 2 | const path = require('path'); |
| 3 | |
| 4 | module.exports = { |
| 5 | ...defaultConfig, |
| 6 | resolve: { |
| 7 | ...defaultConfig.resolve, |
| 8 | fullySpecified: false, |
| 9 | }, |
| 10 | entry: { |
| 11 | 'editor': path.resolve( __dirname, 'assets/src/editor.js' ), |
| 12 | //'editor-style': path.resolve( __dirname, 'assets/src/editor-style.scss' ), |
| 13 | }, |
| 14 | output: { |
| 15 | path: path.resolve(__dirname, 'assets/build'), |
| 16 | filename: '[name].js', |
| 17 | }, |
| 18 | }; |
| 19 |