PaperJS loader for webpack
Install
npm install paper-loader paper --save-dev
The paper-loader requires paper and webpack
as a peerDependency
. Thus you are able to specify the required versions accurately.
Usage
var executePaperScript = ;// Wait for canvas to be createdwindow {// Call the module to create a paperjs scope and execute the codevar scope = ;}
The module returns a function that can be called to create a PaperJS Scope. It takes one parameter that sets up the view, and returns the scope created.
Apply via webpack config
moduleexports =...module:loaders:test: /\.paper.js$/loader: "paper-loader";
License
MIT