storybook-eol / generate-page-webpack-plugin Goto Github PK
View Code? Open in Web Editor NEWgenerate a html-page for every webpack entrypoint
License: MIT License
generate a html-page for every webpack entrypoint
License: MIT License
Hello, I need help. I need to use my own svg spritesheet plugin with the generate-page-webpack-plugin. Please give me an advice.
Plugin source here:
In Node.js v8.2.1, "object rest/spread properties" is not supported by default, --harmony
option is needed.
https://node.green/#ES2018-features-object-rest-spread-properties
So @storybook/vue
fails to run the following:
>npm run storybook
some-project\node_modules\generate-page-webpack-plugin\index.js:37
...acc,
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous>
Currently, I call the command of start-storybook
and build-storybook
directly with --harmony
option.
But if possible, I want you to support officially.
{
"scripts": {
"storybook": "node --harmony ./node_modules/@storybook/vue/bin/index.js -p 9001 -c .storybook",
"build-storybook": "node --harmony ./node_modules/@storybook/vue/bin/build.js -c .storybook -o .out"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.