Skip to content

Commit 232ca06

Browse files
committed
fix (build) : Exclude editor-style from front-end
1 parent 9e6f6a2 commit 232ca06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/vendor/webpack-php-output.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ PhpOutputPlugin.prototype.apply = function apply(compiler) {
2323

2424
var getCssFiles = function(filelist, filepath) {
2525
return _.map(
26-
_.filter(filelist, filename => filename.endsWith('.css')), // filtering
26+
_.filter(filelist, filename => filename.endsWith('.css') && !filename.startsWith('editor-style')), // filtering
2727
filename => path.join(options.assetsPathPrefix, filepath, filename) // mapping filtered
2828
)
2929
}
3030

3131
var getJsFiles = function(filelist, filepath) {
3232
let files = _.map(
33-
_.filter(filelist, filename => filename.endsWith('.js')), // filtering
33+
_.filter(filelist, filename => filename.endsWith('.js') && !filename.startsWith('editor-style')), // filtering
3434
filename => path.join(options.assetsPathPrefix, filepath, filename) // mapping filtered
3535
)
3636

0 commit comments

Comments
 (0)