Get ionicons imported
This commit is contained in:
parent
201c8a7c4c
commit
5404b81193
3 changed files with 35 additions and 1 deletions
|
@ -73,7 +73,11 @@ module.exports = {
|
|||
hints: false,
|
||||
},
|
||||
// Passing an array loads them all but only exports the last.
|
||||
entry: ['./resources/assets/styles/main.css', './resources/assets/scripts/app.js'],
|
||||
entry: [
|
||||
'./resources/assets/styles/main.css',
|
||||
'./node_modules/ionicons/dist/css/ionicons.css',
|
||||
'./resources/assets/scripts/app.js'
|
||||
],
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'public/assets'),
|
||||
filename: 'bundle-[hash].js',
|
||||
|
@ -86,6 +90,10 @@ module.exports = {
|
|||
test: /\.vue$/,
|
||||
loader: 'vue-loader',
|
||||
},
|
||||
{
|
||||
test: /\.(eot|woff|woff2|svg|ttf)([?]?.*)$/,
|
||||
loader: 'file-loader',
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
include: [
|
||||
|
@ -97,6 +105,7 @@ module.exports = {
|
|||
test: /\.css$/,
|
||||
include: [
|
||||
path.resolve(__dirname, 'resources'),
|
||||
path.resolve(__dirname, 'node_modules/ionicons/dist/css/ionicons.css'),
|
||||
],
|
||||
use: ExtractTextPlugin.extract({
|
||||
fallback: 'style-loader',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue