SVG handling
This commit is contained in:
@@ -34,6 +34,30 @@ export default [
|
||||
})
|
||||
]
|
||||
},
|
||||
// SVG test
|
||||
{
|
||||
input: 'test/svg/index.jsx',
|
||||
output: {
|
||||
file: 'public/svg/index.js',
|
||||
format: 'iife', // immediately-invoked function expression — suitable for <script> tags
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [
|
||||
sass(),
|
||||
babel(), // babel
|
||||
resolve({
|
||||
extensions: [ '.mjs', '.js', '.jsx', '.json' ],
|
||||
}), // node_modules
|
||||
commonjs(), // CJS-modules
|
||||
production && terser(), // minify, but only in production
|
||||
copy({
|
||||
targets: [
|
||||
{ src: 'test/svg/index.html', dest: 'public/svg' }
|
||||
],
|
||||
copyOnce: true
|
||||
})
|
||||
]
|
||||
},
|
||||
// Todos MVC
|
||||
{
|
||||
input: 'test/todos-mvc/index.jsx',
|
||||
|
||||
Reference in New Issue
Block a user