Laravel 混合添加依赖
Laravel Mix add dependencies
我想在Laravel混合编译中使用sparksuite/simplemde-markdown-editor。
我在app.scss中添加了这一行:
@import "node_modules/simplemde/dist/simplemde.min.css";
app.js中的这一行:
window.SimpleMDE = require('simplemde');
我想在我的项目中编译这个插件...
/* in webpack.mix.js file add following lines at the end */
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
在终端中添加 运行 下面的命令后
npm run dev
(或)
npm run watch
我想在Laravel混合编译中使用sparksuite/simplemde-markdown-editor。
我在app.scss中添加了这一行:
@import "node_modules/simplemde/dist/simplemde.min.css";
app.js中的这一行:
window.SimpleMDE = require('simplemde');
我想在我的项目中编译这个插件...
/* in webpack.mix.js file add following lines at the end */
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
在终端中添加 运行 下面的命令后
npm run dev
(或)npm run watch