Toggle navigation
Toggle navigation
This project
Loading...
Sign in
arcs
/
arcs.js
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Yves Didier
2021-08-28 19:18:33 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2adc929bf7c909413aef4d88ab55a25d88ec0f30
2adc929b
1 parent
b361f111
bundler test for arcsapp components
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
1 deletions
package.json
src/arcsapp_bundler.js
tests/loop/webpack.config.js
package.json
View file @
2adc929
...
...
@@ -40,6 +40,7 @@
"devDependencies"
:
{
"copy-webpack-plugin"
:
"^9.0.1"
,
"eslint-webpack-plugin"
:
"^3.0.1"
,
"jsdoc-webpack-plugin"
:
"^0.3.0"
"jsdoc-webpack-plugin"
:
"^0.3.0"
,
"val-loader"
:
"^4.0.0"
}
}
...
...
src/arcsapp_bundler.js
0 → 100644
View file @
2adc929
/** The aim of this part is to provide a bundler for the arcsapp so that less files are downloaded at runtime
*
*/
module
.
exports
=
function
arcsappToJs
(
options
,
loaderContext
,
content
)
{
// content is here our file arcsapp.json
let
code
=
`let descr=
${
content
}
;`
return
{
cacheable
:
true
,
code
:
code
};
};
tests/loop/webpack.config.js
0 → 100644
View file @
2adc929
const
path
=
require
(
'path'
);
module
.
exports
=
{
entry
:
'./arcsapp.json'
,
mode
:
"none"
,
output
:
{
path
:
path
.
resolve
(
__dirname
,
''
),
filename
:
"toto.js"
},
module
:
{
rules
:
[
{
test
:
/arcsapp
\.
json$/
,
rules
:
[{
loader
:
"val-loader"
,
options
:
{
executableFile
:
path
.
resolve
(
__dirname
,
"../../src"
,
"arcsapp_bundler.js"
)
}
}]
},
{
test
:
/arcsapp
\.
json$/
,
//type: "asset/inline"
type
:
"javascript/auto"
}
]
}
};
Please
register
or
login
to post a comment