1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-18 20:59:42 +02:00

Integrate CodeXEditor: dynamic import added (#5)

* Main elements created

* Add Editor to the writing page
This commit is contained in:
Peter Savchenko 2018-09-19 01:47:32 +03:00 committed by GitHub
parent 4326cb22ab
commit e7e64cea3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 15676 additions and 820 deletions

View file

@ -8,14 +8,11 @@ const babelLoader = {
options: {
cacheDirectory: '.cache/babel-loader',
presets: [
'env'
'@babel/preset-env',
],
plugins: [
/**
* Dont need to use «.default» after «export default Class Ui {}»
* @see {@link https://github.com/59naga/babel-plugin-add-module-exports}
*/
// 'add-module-exports',
'babel-plugin-transform-es2015-modules-commonjs',
'@babel/plugin-syntax-dynamic-import'
]
}
};
@ -44,6 +41,7 @@ module.exports = (env) => {
])
}, {
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: [
babelLoader
]
@ -54,7 +52,7 @@ module.exports = (env) => {
new ExtractTextPlugin('bundle.css')
],
optimization: {
minimize: true
minimize: false
}
};
};