module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: 'babel-loader',
},
{
test: /\.scss$/,
use: ['style-loader', cssLoader(argv), 'sass-loader'],
},
{
test: /\.css$/,
use: ['style-loader', cssLoader(argv)],
},
{
test: /\.(png|jpg|gif|atlas)$/,
use: ['file-loader'],
},
{
test: /\.svg/,
loader: 'file-loader',
},
{
test: /\.(woff(2)?|ttf|eot)(\?v=\d+\.\d+\.\d+)?$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/',
},
},
],
},
],
},
import * as spinePng3 from './ships/skeleton.png';
import * as spineAtlas3 from './ships/skeleton.atlas';
import * as spineJSON3 from './ships/skeleton.json';