Last active
May 31, 2019 08:57
-
-
Save kcleong/1936157138890f91f510ee3ef5409e7e to your computer and use it in GitHub Desktop.
Add missing webpack parts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/resources/package.json b/resources/package.json | |
--- a/resources/package.json | |
+++ b/resources/package.json | |
@@ -22,7 +22,8 @@ | |
"webpack-merge": "^4.1.0" | |
}, | |
"dependencies": { | |
- "brace": "^0.10.0" | |
+ "brace": "^0.10.0", | |
+ "mockup": "git+https://github.com/plone/mockup.git#2.7.2" | |
}, | |
"scripts": { | |
"watch": "webpack-dev-server", | |
diff --git a/resources/webpack.config.js b/resources/webpack.config.js | |
--- a/resources/webpack.config.js | |
+++ b/resources/webpack.config.js | |
@@ -10,7 +10,9 @@ const PUBLICPATH = process.env.PUBLICPATH || '/' + SITENAME + '/++theme++' + THE | |
const PATHS = { | |
src: path.join(__dirname, 'src', THEMENAME), | |
- build: path.join(__dirname, 'theme', THEMENAME) | |
+ build: path.join(__dirname, 'theme', THEMENAME), | |
+ mockup: path.join( | |
+ __dirname, 'node_modules', 'mockup', 'mockup', 'patterns') | |
}; | |
const PLONE = new PlonePlugin({ | |
@@ -18,7 +20,10 @@ const PLONE = new PlonePlugin({ | |
publicPath: PUBLICPATH, | |
sourcePath: PATHS.src, | |
momentLocales: ['ca', 'fi'], | |
- debug: false | |
+ debug: false, | |
+ variables: { | |
+ 'mockup-patterns-recurrence': '"' + path.join(PATHS.mockup, 'recurrence', 'pattern.recurrence.less') +'"' | |
+ } | |
}); | |
const common = { | |
@@ -42,7 +47,8 @@ const common = { | |
'./fonts/tinymce-small.eot': '++plone++static/components/tinymce-builded/js/tinymce/skins/lightgray/fonts/tinymce-small.eot', | |
'./fonts/tinymce-small.woff': '++plone++static/components/tinymce-builded/js/tinymce/skins/lightgray/fonts/tinymce-small.woff', | |
'./fonts/tinymce-small.svg': '++plone++static/components/tinymce-builded/js/tinymce/skins/lightgray/fonts/tinymce-small.svg', | |
- './fonts/tinymce-small.ttf': '++plone++static/components/tinymce-builded/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf' | |
+ './fonts/tinymce-small.ttf': '++plone++static/components/tinymce-builded/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf', | |
+ 'mockup-patterns-recurrence': path.join(PATHS.mockup, 'recurrence', 'pattern'), | |
}, | |
}, | |
module: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<registry> | |
<!-- import via: http://localhost:8080/Plone/portal_registry --> | |
<records prefix="plone.resources/tinymce-compat3x" | |
interface='Products.CMFPlone.interfaces.IResourceRegistry'> | |
<value key="js">++plone++static/components/tinymce-builded/js/tinymce/plugins/compat3x/plugin.js</value> | |
<value key="deps">tinymce</value> | |
</records> | |
</registry> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment