JSPM

webpack-obj-loader

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 346
  • Score
    100M100P100Q83386F
  • License MIT

A webpack loader for obj files.

Package Exports

  • webpack-obj-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webpack-obj-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Webpack loader for OBJ

Loading OBJ files by using frenchtoast747's webgl-obj-loader. It's actually just a wrapper, it resolves new Mesh(source).

Install

npm install --save-dev webpack-obj-loader

Usage

{
    module: {
        loaders: [
            {
                test: /\.obj$/,
                loader: 'webpack-obj-loader'
            }
        ]
    }
}

and then

import myLovelyObject from './myLovelyShader.obj');