UNPKG

webgl-3d-viewer

Version:

A WebGL ThreeJS STL viewer implementation written in ES6

38 lines (35 loc) 744 B
const autoPrefixerCfg = 'autoprefixer-loader?{browsers:["last 10 version", "Firefox >= 15","ie >= 9"]}'; const config = { entry: './src/example/main.js', output: { path: `${__dirname}/build/example`, filename: 'main.js' }, module: { loaders: [ { test: /\.js?$/, exclude: /(node_modules|bower_components)/, loader: 'babel', query: { optional: ['runtime'], stage: 0 } }, { test: /\.css$/, loader: `style!css!${autoPrefixerCfg}` } ] }, devServer: { headers: { 'Access-Control-Allow-Origin': '*' }, watchOptions: { aggregateTimeout: 1000, poll: 2000 } } }; module.exports = config;